共用方式為


NamedComponentCollection.IsValidName 方法 (String, Type, String%)

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Determines whether the named component collection name is valid.

命名空間:  Microsoft.AnalysisServices
組件:  Microsoft.AnalysisServices (在 Microsoft.AnalysisServices.dll 中)

語法

'宣告
Protected Function IsValidName ( _
    name As String, _
    type As Type, _
    <OutAttribute> ByRef error As String _
) As Boolean
'用途
Dim name As String 
Dim type As Type 
Dim error As String 
Dim returnValue As Boolean 

returnValue = Me.IsValidName(name, _
    type, error)
protected bool IsValidName(
    string name,
    Type type,
    out string error
)
protected:
bool IsValidName(
    String^ name, 
    Type^ type, 
    [OutAttribute] String^% error
)
member IsValidName : 
        name:string * 
        type:Type * 
        error:string byref -> bool
protected function IsValidName(
    name : String, 
    type : Type, 
    error : String
) : boolean

參數

傳回值

型別:System.Boolean
true if the named component collection name is valid; otherwise, false.

請參閱

參考

NamedComponentCollection 類別

IsValidName 多載

Microsoft.AnalysisServices 命名空間