Compartilhar via


Método AttributeRelationshipCollection.Add (String)

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

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (em Microsoft.AnalysisServices.dll)

Sintaxe

'Declaração
Public Function Add ( _
    attributeId As String _
) As AttributeRelationship
'Uso
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

Parâmetros

Valor de retorno

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

Exceções

Exceção Condição
ArgumentNullException

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

Consulte também

Referência

AttributeRelationshipCollection Classe

Sobrecarregado Add

Namespace Microsoft.AnalysisServices