CodeDomEventBindingService.ValidateMethodName Method
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
'Dichiarazione
Protected Overrides Sub ValidateMethodName ( _
methodName As String _
)
'Utilizzo
Dim methodName As String
Me.ValidateMethodName(methodName)
protected override void ValidateMethodName(
string methodName
)
protected:
virtual void ValidateMethodName(
String^ methodName
) override
abstract ValidateMethodName :
methodName:string -> unit
override ValidateMethodName :
methodName:string -> unit
protected override function ValidateMethodName(
methodName : String
)
Parameters
- methodName
Type: System.String
The method name to validate.
Remarks
This method calls the IsValidIdentifier method. If the method name is not valid, it throws an ArgumentException.
.NET Framework Security
- 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