共用方式為


MetadataSection.Dialect 屬性

定義

取得或設定值,指出中繼資料的型別。

public:
 property System::String ^ Dialect { System::String ^ get(); void set(System::String ^ value); };
public string Dialect { get; set; }
member this.Dialect : string with get, set
Public Property Dialect As String

屬性值

String

中繼資料的方言。 預設為 null

範例

下列程式碼範例會示範如何從 MetadataSection 擷取 System.ServiceModel.Description.MetadataResolver 物件,並逐一查看這些物件以將 IdentifierDialect 屬性寫入至主控台。

// Get metadata documents.
Console.WriteLine("URI of the metadata documents retreived:");
MetadataExchangeClient metaTransfer
  = new MetadataExchangeClient(httpGetMetaAddress.Uri, MetadataExchangeClientMode.HttpGet);
metaTransfer.ResolveMetadataReferences = true;
MetadataSet otherDocs = metaTransfer.GetMetadata();
foreach (MetadataSection doc in otherDocs.MetadataSections)
    Console.WriteLine(doc.Dialect + " : " + doc.Identifier);

備註

方言會指出這個 MetadataSection 中的中繼資料型別。 具有可支援物件模型的方言字串為:

適用於