Validates the name of the method.
Namespace: Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'宣言
Protected Overrides Sub ValidateMethodName ( _
methodName As String _
)
'使用
Dim methodName As String
Me.ValidateMethodName(methodName)
protected override void ValidateMethodName(
string methodName
)
protected:
virtual void ValidateMethodName(
String^ methodName
) override
protected override function ValidateMethodName(
methodName : String
)
Parameters
methodName
Type: System.StringThe method name to validate.
Remarks
This method calls the IsValidIdentifier method. If the method name is not valid, it throws an ArgumentException.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
CodeDomEventBindingService Class
CodeDomEventBindingService Members
Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom Namespace