Import.Location Property
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.
Gets or sets the value of the XML location
attribute of the import
element.
public:
property System::String ^ Location { System::String ^ get(); void set(System::String ^ value); };
public string Location { get; set; }
member this.Location : string with get, set
Public Property Location As String
Property Value
The value of the XML location
attribute of the import
element. This value also specifies the URL of the imported document.
Examples
// Creates an Import object with namespace and location.
Import^ CreateImport( String^ targetNamespace, String^ targetlocation )
{
Import^ myImport = gcnew Import;
myImport->Location = targetlocation;
myImport->Namespace = targetNamespace;
return myImport;
}
// 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;
}
' 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
Applies to
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.