Condividi tramite


Metodo Add (String)

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

Spazio dei nomi  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

Sintassi

'Dichiarazione
Public Function Add ( _
    attributeId As String _
) As AttributeRelationship
'Utilizzo
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

Parametri

Valore restituito

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

Eccezioni

Eccezione Condizione
ArgumentNullException

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