DesignSurfaceExtension.Initialize Method
Initializes the design surface extension.
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'Declaration
Public Overridable Sub Initialize ( _
surface As DesignSurface _
)
'Usage
Dim instance As DesignSurfaceExtension
Dim surface As DesignSurface
instance.Initialize(surface)
public virtual void Initialize(
DesignSurface surface
)
public:
virtual void Initialize(
DesignSurface^ surface
)
abstract Initialize :
surface:DesignSurface -> unit
override Initialize :
surface:DesignSurface -> unit
public function Initialize(
surface : DesignSurface
)
Parameters
- surface
Type: System.ComponentModel.Design.DesignSurface
The design surface that is being created.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | surface is nulla null reference (Nothing in Visual Basic). |
Remarks
If you do not need any initialization you do not need to override this method.
.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
DesignSurfaceExtension Members
Microsoft.VisualStudio.Shell.Design Namespace
DesignSurfaceExtensionAttribute