This documentation is archived and is not being maintained.
Import.Namespace Property
.NET Framework 1.1
Gets or sets a reference to the XML namespace of the Import.
[Visual Basic] Public Property Namespace As String [C#] public string Namespace {get; set;} [C++] public: __property String* get_Namespace(); public: __property void set_Namespace(String*); [JScript] public function get Namespace() : String; public function set Namespace(String);
Property Value
A string specifying the XML namespace of the Import.
Example
[Visual Basic] ' Creates an Import object with namespace and location. Public Shared Function CreateImport(targetNamespace As String, _ targetlocation As String) As Import Dim myImport As New Import() myImport.Location = targetlocation myImport.Namespace = targetNamespace Return myImport End Function 'CreateImport [C#] // Creates an Import object with namespace and location. public static Import CreateImport(string targetNamespace, string targetlocation) { Import myImport = new Import(); myImport.Location = targetlocation; myImport.Namespace = targetNamespace; return myImport; } [C++] // Creates an Import object with namespace and location. Import * CreateImport(String* targetNamespace, String* targetlocation) { Import* myImport = new Import(); myImport->Location = targetlocation; myImport->Namespace = targetNamespace; return myImport; }
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
Import Class | Import Members | System.Web.Services.Description Namespace
Show: