Megosztás a következőn keresztül:


NamedComponentCollection.IsValidID Method

Definition

Overloads

IsValidID(String)

Determines whether the provided identifier is valid for a component in the collection.

IsValidID(String, String)

Determines whether the provided identifier is valid for a component in the collection.

IsValidID(String, Type, String)

Determines whether the provided identifier is valid for a component in the collection.

IsValidID(String)

Determines whether the provided identifier is valid for a component in the collection.

public bool IsValidID (string id);
member this.IsValidID : string -> bool
Public Function IsValidID (id As String) As Boolean

Parameters

id
String

The identifier to validate.

Returns

true if the ID is valid for a component in collection; otherwise, false.

Applies to

IsValidID(String, String)

Determines whether the provided identifier is valid for a component in the collection.

public virtual bool IsValidID (string id, out string error);
abstract member IsValidID : string * string -> bool
override this.IsValidID : string * string -> bool
Public Overridable Function IsValidID (id As String, ByRef error As String) As Boolean

Parameters

id
String

The identifier to validate.

error
String

The error that will occur if the provided ID is not valid.

Returns

true if the ID is valid for a component in collection; otherwise, false.

Applies to

IsValidID(String, Type, String)

Determines whether the provided identifier is valid for a component in the collection.

protected bool IsValidID (string id, Type type, out string error);
member this.IsValidID : string * Type * string -> bool
Protected Function IsValidID (id As String, type As Type, ByRef error As String) As Boolean

Parameters

id
String

The identifier to validate.

type
Type

The type of the component.

error
String

The error that will occur if the provided ID is not valid.

Returns

true if the ID is valid for a component in collection; otherwise, false.

Remarks

For internal use.

Applies to