CodeDomDesignerLoader.INameCreationService.ValidateName(String) 方法

定义

获取一个值,该值指示指定名称是否有效。

 virtual void System.ComponentModel.Design.Serialization.INameCreationService.ValidateName(System::String ^ name) = System::ComponentModel::Design::Serialization::INameCreationService::ValidateName;
void INameCreationService.ValidateName (string name);
abstract member System.ComponentModel.Design.Serialization.INameCreationService.ValidateName : string -> unit
override this.System.ComponentModel.Design.Serialization.INameCreationService.ValidateName : string -> unit
Sub ValidateName (name As String) Implements INameCreationService.ValidateName

参数

name
String

要验证的名称。

实现

例外

namenull

name 不是有效标识符,或者已经存在具有相同名称的组件。

适用于