Session.Validate 方法 (String)
Validates the specified method name.
命名空間: Microsoft.SqlServer.Management.XEvent
組件: Microsoft.SqlServer.Management.XEvent (在 Microsoft.SqlServer.Management.XEvent.dll 中)
語法
'宣告
Public Sub Validate ( _
methodName As String _
)
'用途
Dim instance As Session
Dim methodName As String
instance.Validate(methodName)
public void Validate(
string methodName
)
public:
void Validate(
String^ methodName
)
member Validate :
methodName:string -> unit
public function Validate(
methodName : String
)
參數
- methodName
型別:System.String
A string value that contains the name of the method: ValidationMethod.Create or ValidationMethod.Alter.
例外狀況
例外狀況 | 條件 |
---|---|
XEventException | Validation failed. |