CodeIdentifiers.Clear 方法

定义

CodeIdentifiers 实例的范围中移除所有代码实体或类型映射,包括它们的名称。Removes all code entities or type mappings, including their names, from the CodeIdentifiers instance's scope.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 void Clear();
public void Clear ();
member this.Clear : unit -> unit
Public Sub Clear ()

注解

不会删除通过方法添加的保留名称 AddReservedReserved names, as added through the AddReserved method, are not removed.

如果要控制绑定到 XML 架构或 Web 服务定义的代码实体的名称,请使用关联的属性,而不是创建类的实例 CodeIdentifiersIf you want to control the names of code entities that are bound to XML Schema or Web service definitions, use the associated attributes rather than creating an instance of the CodeIdentifiers class. 有关完整列表,请参阅 控制 XML 序列化的属性For a complete list, see Attributes That Control XML Serialization.

适用于