共用方式為


Add 方法 (String)

Creates and adds the specified AggregationInstanceAttribute to the end of the collection.

命名空間:  Microsoft.AnalysisServices
組件:  Microsoft.AnalysisServices (在 Microsoft.AnalysisServices.dll 中)

語法

'宣告
Public Function Add ( _
    attributeId As String _
) As AggregationInstanceAttribute
'用途
Dim instance As AggregationInstanceAttributeCollection
Dim attributeId As String
Dim returnValue As AggregationInstanceAttribute

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

參數

例外狀況

例外狀況 條件
ArgumentNullException

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