CodeNamespaceImportCollection.Add(CodeNamespaceImport) 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 CodeNamespaceImport object to the collection.
public:
void Add(System::CodeDom::CodeNamespaceImport ^ value);
public void Add (System.CodeDom.CodeNamespaceImport value);
member this.Add : System.CodeDom.CodeNamespaceImport -> unit
Public Sub Add (value As CodeNamespaceImport)
Parameters
- value
- CodeNamespaceImport
The CodeNamespaceImport object to add to the collection.
Examples
The following example demonstrates how to add a CodeNamespaceImport object to a CodeNamespaceImportCollection instance.
// Adds a CodeNamespaceImport to the collection.
collection->Add( gcnew CodeNamespaceImport( "System" ) );
// Adds a CodeNamespaceImport to the collection.
collection.Add( new CodeNamespaceImport("System") );
' Adds a CodeNamespaceImport to the collection.
collection.Add(New CodeNamespaceImport("System"))
Applies to
See also
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.