共用方式為


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).