Bahasa

ProtocolImporter.AddExtensionWarningComments Metode

Definisi

Untuk setiap ekstensi atau elemen XML yang tidak tertangani dalam koleksi ekstensi input, mengaktifkan RequiredExtensionsIgnored atau OptionalExtensionsIgnored memperingatkan untuk setiap ekstensi atau elemen XML yang tidak tertangani dalam koleksi ekstensi input.

public:
 void AddExtensionWarningComments(System::CodeDom::CodeCommentStatementCollection ^ comments, System::Web::Services::Description::ServiceDescriptionFormatExtensionCollection ^ extensions);
public void AddExtensionWarningComments(System.CodeDom.CodeCommentStatementCollection comments, System.Web.Services.Description.ServiceDescriptionFormatExtensionCollection extensions);
member this.AddExtensionWarningComments : System.CodeDom.CodeCommentStatementCollection * System.Web.Services.Description.ServiceDescriptionFormatExtensionCollection -> unit
Public Sub AddExtensionWarningComments (comments As CodeCommentStatementCollection, extensions As ServiceDescriptionFormatExtensionCollection)

Parameter

comments
CodeCommentStatementCollection

CodeCommentStatementCollection yang menentukan kumpulan komentar kode tempat setiap pesan peringatan ditambahkan.

extensions
ServiceDescriptionFormatExtensionCollection

ServiceDescriptionFormatExtensionCollection yang menentukan ekstensi atau elemen XML yang peringatannya harus dihasilkan jika tidak ditangani.

Keterangan

Metode ini juga menambahkan pesan peringatan ke kumpulan komentar kode.

Berlaku untuk