CodeParameterDeclarationExpressionCollection.Add 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將指定的 CodeParameterDeclarationExpression 資料加入集合。
public:
int Add(System::CodeDom::CodeParameterDeclarationExpression ^ value);
public int Add(System.CodeDom.CodeParameterDeclarationExpression value);
member this.Add : System.CodeDom.CodeParameterDeclarationExpression -> int
Public Function Add (value As CodeParameterDeclarationExpression) As Integer
參數
還有 CodeParameterDeclarationExpression 一點要補充。
傳回
新元素插入的索引。
範例
以下範例示範如何將物件加入CodeParameterDeclarationExpressionCodeParameterDeclarationExpressionCollection實例。
// Adds a CodeParameterDeclarationExpression to the collection.
collection.Add( new CodeParameterDeclarationExpression(typeof(int), "testIntArgument") );
' Adds a CodeParameterDeclarationExpression to the collection.
collection.Add(New CodeParameterDeclarationExpression(GetType(Integer), "testIntArgument"))