ServiceDescription.Imports Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
içinde ServiceDescriptionbulunan öğe koleksiyonunu Import alır.
public:
property System::Web::Services::Description::ImportCollection ^ Imports { System::Web::Services::Description::ImportCollection ^ get(); };
public System.Web.Services.Description.ImportCollection Imports { get; }
member this.Imports : System.Web.Services.Description.ImportCollection
Public ReadOnly Property Imports As ImportCollection
Özellik Değeri
Hizmet açıklamasında yer alan içeri aktarma öğeleri koleksiyonu.
Örnekler
ServiceDescription^ myServiceDescription = gcnew ServiceDescription;
myServiceDescription = ServiceDescription::Read( "ServiceDescription_Imports_Input_CS.wsdl" );
ImportCollection^ myImportCollection = myServiceDescription->Imports;
// Create an Import.
Import^ myImport = gcnew Import;
myImport->Namespace = myServiceDescription->TargetNamespace;
// Set the location for the Import.
myImport->Location = "http://www.contoso.com/";
myImportCollection->Add( myImport );
myServiceDescription->Write( "ServiceDescription_Imports_Output_CS.wsdl" );
myImportCollection->Clear();
myServiceDescription = ServiceDescription::Read( "ServiceDescription_Imports_Output_CS.wsdl" );
myImportCollection = myServiceDescription->Imports;
Console::WriteLine( "The Import elements added to the ImportCollection are: " );
for ( int i = 0; i < myImportCollection->Count; i++ )
{
Console::WriteLine( "{0}. {1}", (i + 1), myImportCollection[ i ]->Location );
}
ServiceDescription myServiceDescription = new ServiceDescription();
myServiceDescription =
ServiceDescription.Read("ServiceDescription_Imports_Input_CS.wsdl");
ImportCollection myImportCollection = myServiceDescription.Imports;
// Create an Import.
Import myImport = new Import();
myImport.Namespace = myServiceDescription.TargetNamespace;
// Set the location for the Import.
myImport.Location = "http://www.contoso.com/";
myImportCollection.Add(myImport);
myServiceDescription.Write("ServiceDescription_Imports_Output_CS.wsdl");
myImportCollection.Clear();
myServiceDescription =
ServiceDescription.Read("ServiceDescription_Imports_Output_CS.wsdl");
myImportCollection = myServiceDescription.Imports;
Console.WriteLine(
"The Import elements added to the ImportCollection are: ");
for(int i = 0; i < myImportCollection.Count; i++)
{
Console.WriteLine((i+1) + ". " + myImportCollection[i].Location);
}
Dim myServiceDescription As New ServiceDescription()
myServiceDescription = _
ServiceDescription.Read("ServiceDescription_Imports_Input_VB.wsdl")
Dim myImportCollection As ImportCollection = myServiceDescription.Imports
' Create an Import.
Dim myImport As New Import()
myImport.Namespace = myServiceDescription.TargetNamespace
' Set the location for the Import.
myImport.Location = "http://www.contoso.com/"
myImportCollection.Add(myImport)
myServiceDescription.Write("ServiceDescription_Imports_Output_VB.wsdl")
myImportCollection.Clear()
myServiceDescription = _
ServiceDescription.Read("ServiceDescription_Imports_Output_VB.wsdl")
myImportCollection = myServiceDescription.Imports
Console.WriteLine( _
"The Import elements added to the ImportCollection are: ")
Dim i As Integer
For i = 0 To myImportCollection.Count - 1
Console.WriteLine((i + 1).ToString() & ". " & _
myImportCollection(i).Location)
Next i
Açıklamalar
ImportCollection Bu özellik tarafından döndürülen, Web Hizmetleri Açıklama Dili (WSDL) definitions
kök öğesi kapsamındaki öğelerin listesine import
karşılık gelir. WSDL hakkında daha fazla bilgi için bkz. WSDL belirtimi.