This documentation is archived and is not being maintained.
Import.Location Property
.NET Framework 1.1
Gets or sets a reference to the XML location attribute of the Import instance.
[Visual Basic] Public Property Location As String [C#] public string Location {get; set;} [C++] public: __property String* get_Location(); public: __property void set_Location(String*); [JScript] public function get Location() : String; public function set Location(String);
Property Value
A string specifying the XML location attribute of the Import. This value also specifies the URL of the document that corresponds to 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: