CodeAttributeArgumentCollection.Add(CodeAttributeArgument) 메서드

정의

컬렉션에 지정된 CodeAttributeArgument 개체를 추가합니다.

public:
 int Add(System::CodeDom::CodeAttributeArgument ^ value);
public int Add(System.CodeDom.CodeAttributeArgument value);
member this.Add : System.CodeDom.CodeAttributeArgument -> int
Public Function Add (value As CodeAttributeArgument) As Integer

매개 변수

value
CodeAttributeArgument

추가할 개체입니다 CodeAttributeArgument .

반품

새 요소가 삽입된 인덱스입니다.

예제

다음 예제에서는 인스턴스에 개체 CodeAttributeArgumentCollectionCodeAttributeArgument 추가하는 방법을 보여 줍니다.

// Adds a CodeAttributeArgument to the collection.
collection.Add( new CodeAttributeArgument("Test Boolean Argument", new CodePrimitiveExpression(true)) );
' Adds a CodeAttributeArgument to the collection.
collection.Add(New CodeAttributeArgument("Test Boolean Argument", New CodePrimitiveExpression(True)))

적용 대상

추가 정보