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 _
)
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: DesignSurfaceThe 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
Microsoft.VisualStudio.Shell.Design Namespace
DesignSurfaceExtensionAttribute