CodeTypeMemberCollection.Add(CodeTypeMember) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a CodeTypeMember with the specified value to the collection.
public:
int Add(System::CodeDom::CodeTypeMember ^ value);
public int Add (System.CodeDom.CodeTypeMember value);
member this.Add : System.CodeDom.CodeTypeMember -> int
Public Function Add (value As CodeTypeMember) As Integer
Parameters
- value
- CodeTypeMember
The CodeTypeMember to add.
Returns
The index at which the new element was inserted.
Examples
The following code example demonstrates how to add a CodeTypeMember object to a CodeTypeMemberCollection instance.
// Adds a CodeTypeMember to the collection.
collection->Add( gcnew CodeMemberField( "System.String","TestStringField" ) );
// Adds a CodeTypeMember to the collection.
collection.Add( new CodeMemberField("System.String", "TestStringField") );
' Adds a CodeTypeMember to the collection.
collection.Add(New CodeMemberField("System.String", "TestStringField"))
Applies to
See also
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.