IVstaProjectHostItem.AddMethod Method
Adds a method to the host item's code file.
Namespace: Microsoft.VisualStudio.Tools.Applications.DesignTime.Interop
Assembly: Microsoft.VisualStudio.Tools.Applications.DesignTime.v9.0 (in Microsoft.VisualStudio.Tools.Applications.DesignTime.v9.0.dll)
Syntax
'Declaration
Sub AddMethod ( _
method As CodeMemberMethod _
)
'Usage
Dim instance As IVstaProjectHostItem
Dim method As CodeMemberMethod
instance.AddMethod(method)
void AddMethod(
CodeMemberMethod method
)
void AddMethod(
CodeMemberMethod^ method
)
function AddMethod(
method : CodeMemberMethod
)
Parameters
method
Type: System.CodeDom.CodeMemberMethodThe method to add.
.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
IVstaProjectHostItem Interface
Microsoft.VisualStudio.Tools.Applications.DesignTime.Interop Namespace