Add 方法 (String)

Creates and adds the AttributeRelationship, which is defined by attributeID, to the end of the collection.

命名空间:  Microsoft.AnalysisServices
程序集:  Microsoft.AnalysisServices(在 Microsoft.AnalysisServices.dll 中)

语法

声明
Public Function Add ( _
    attributeId As String _
) As AttributeRelationship
用法
Dim instance As AttributeRelationshipCollection
Dim attributeId As String
Dim returnValue As AttributeRelationship

returnValue = instance.Add(attributeId)
public AttributeRelationship Add(
    string attributeId
)
public:
AttributeRelationship^ Add(
    String^ attributeId
)
member Add : 
        attributeId:string -> AttributeRelationship 
public function Add(
    attributeId : String
) : AttributeRelationship

参数

返回值

类型:Microsoft.AnalysisServices. . :: . .AttributeRelationship
The AttributeRelationship that was added to the collection.

异常

异常 条件
ArgumentNullException

attributeId is a null reference (Nothing in Visual Basic).