Share via


AttributeRelationshipCollection.Item Property (String)

Gets the AttributeRelationship object from the collection with the given attribute identifier.

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    attributeId As String _
) As AttributeRelationship 
    Get
'Usage
Dim instance As AttributeRelationshipCollection 
Dim attributeId As String 
Dim value As AttributeRelationship 

value = instance(attributeId)
public AttributeRelationship this[
    string attributeId
] { get; }
public:
property AttributeRelationship^ default[String^ attributeId] {
    AttributeRelationship^ get (String^ attributeId);
}
member Item : AttributeRelationship
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

Property Value

Type: Microsoft.AnalysisServices.AttributeRelationship
The AttributeRelationship object with the given attribute identifier.

Exceptions

Exception Condition
ArgumentNullException

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

ItemNotFoundException

attributeId does not exist in the collection.

See Also

Reference

AttributeRelationshipCollection Class

Item Overload

Microsoft.AnalysisServices Namespace