Utils.GetSyntacticallyValidName(String, ObjectType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the syntactically valid name of the object. Null or empty names are replaced with a default name. Names exceeding maximum allowed length are trimmed. Invalid XML is removed.
public static string GetSyntacticallyValidName (string baseName, Microsoft.AnalysisServices.Tabular.ObjectType type);
static member GetSyntacticallyValidName : string * Microsoft.AnalysisServices.Tabular.ObjectType -> string
Public Shared Function GetSyntacticallyValidName (baseName As String, type As ObjectType) As String
Parameters
- baseName
- String
An input name subject to validation.
- type
- ObjectType
Type of object.
Returns
Returns a syntactically valid name.