Import.Location Właściwość

Definicja

Pobiera lub ustawia wartość atrybutu import XML location elementu.

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

Wartość właściwości

String

Wartość atrybutu import XML location elementu. Ta wartość określa również adres URL zaimportowanego dokumentu.

Przykłady

// 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

Dotyczy