Creates a new AdomdRestriction with the specified property name and value.
命名空间: Microsoft.AnalysisServices.AdomdClient
程序集: Microsoft.AnalysisServices.AdomdClient (in microsoft.analysisservices.adomdclient.dll)
语法
声明
Public Function Add ( _
propertyName As String, _
value As Object _
) As AdomdRestriction
public AdomdRestriction Add (
string propertyName,
Object value
)
public:
AdomdRestriction^ Add (
String^ propertyName,
Object^ value
)
public AdomdRestriction Add (
String propertyName,
Object value
)
public function Add (
propertyName : String,
value : Object
) : AdomdRestriction
参数
- propertyName
The name of the AdomdRestriction to be created.
- value
The value of the AdomdRestriction to be created.
返回值
An AdomdRestriction class.
线程安全
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
平台
开发平台
有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。
目标平台
有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。
请参阅
参考
AdomdRestrictionCollection Class
AdomdRestrictionCollection Members
Microsoft.AnalysisServices.AdomdClient Namespace