ProtocolImporter.AddExtensionWarningComments Method

Definition

For each unhandled extension or XML element in the input extensions collection, turns on a RequiredExtensionsIgnored or OptionalExtensionsIgnored warning for each unhandled extension or XML element in the input extensions collection.

C#
public void AddExtensionWarningComments(System.CodeDom.CodeCommentStatementCollection comments, System.Web.Services.Description.ServiceDescriptionFormatExtensionCollection extensions);

Parameters

comments
CodeCommentStatementCollection

A CodeCommentStatementCollection that specifies the collection of code comments to which each warning message is added.

extensions
ServiceDescriptionFormatExtensionCollection

A ServiceDescriptionFormatExtensionCollection that specifies the extensions or XML elements for which warnings should be generated if they are not handled.

Remarks

This method also adds the warning messages to a collection of code comments.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1