Compartilhar via


Utils.IsSyntacticallyValidName Method

Definition

Overloads

IsSyntacticallyValidName(String, Type, String)

Indicates whether the specified name is syntactically valid.

IsSyntacticallyValidName(String, Type, ModelType, Int32, String)

Indicates whether the specified name is syntactically valid.

IsSyntacticallyValidName(String, Type, String)

Indicates whether the specified name is syntactically valid.

public static bool IsSyntacticallyValidName (string name, Type type, out string error);
static member IsSyntacticallyValidName : string * Type * string -> bool
Public Shared Function IsSyntacticallyValidName (name As String, type As Type, ByRef error As String) As Boolean

Parameters

name
String

The name to validate.

type
Type

The type of the object to be named.

error
String

The error information [if the name is not valid].

Returns

true if the name is syntactically valid; otherwise, false.

Applies to

IsSyntacticallyValidName(String, Type, ModelType, Int32, String)

Indicates whether the specified name is syntactically valid.

public static bool IsSyntacticallyValidName (string name, Type type, Microsoft.AnalysisServices.ModelType modelType, int compatibilityLevel, out string error);
static member IsSyntacticallyValidName : string * Type * Microsoft.AnalysisServices.ModelType * int * string -> bool
Public Shared Function IsSyntacticallyValidName (name As String, type As Type, modelType As ModelType, compatibilityLevel As Integer, ByRef error As String) As Boolean

Parameters

name
String

The name to validate.

type
Type

The type of the object to be named.

modelType
ModelType

The type of the owning model.

compatibilityLevel
Int32

The target compatibility level.

error
String

The error information [if the name is not valid].

Returns

true if the name is syntactically valid; otherwise, false.

Applies to