共用方式為


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 不是有效的識別項,或已存同名元件。

適用於