次の方法で共有


Insert メソッド (Int32, String)

指定した AttributeRelationship を作成し、index で示されるコレクション内の位置に挿入します。

名前空間:  Microsoft.AnalysisServices
アセンブリ:  Microsoft.AnalysisServices (Microsoft.AnalysisServices.dll)

構文

'宣言
Public Function Insert ( _
    index As Integer, _
    attributeId As String _
) As AttributeRelationship
'使用
Dim instance As AttributeRelationshipCollection
Dim index As Integer
Dim attributeId As String
Dim returnValue As AttributeRelationship

returnValue = instance.Insert(index, attributeId)
public AttributeRelationship Insert(
    int index,
    string attributeId
)
public:
AttributeRelationship^ Insert(
    int index, 
    String^ attributeId
)
member Insert : 
        index:int * 
        attributeId:string -> AttributeRelationship 
public function Insert(
    index : int, 
    attributeId : String
) : AttributeRelationship

パラメーター

戻り値

型: Microsoft.AnalysisServices. . :: . .AttributeRelationship
コレクションに挿入された AttributeRelationship です。

例外

例外 条件
ArgumentOutOfRangeException

次のいずれかのエラー メッセージが表示される場合があります。

index に 0 より小さい値が指定されています。

index に [H:Microsoft.AnalysisServices.ModelComponentCollection.Count] 以上の値が指定されています。