Retrieves the site that was set most recently with SetSite. If no site is known, a failure code is returned.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Public Sub GetSite ( _
ByRef id As Guid, _
<OutAttribute> ByRef site As IntPtr _
)
'使用
Dim instance As ModelingWindowPane
Dim id As Guid
Dim site As IntPtr
instance.GetSite(id, site)
public void GetSite(
ref Guid id,
out IntPtr site
)
public:
virtual void GetSite(
Guid% id,
[OutAttribute] IntPtr% site
) sealed
public final function GetSite(
id : Guid,
site : IntPtr
)
Parameters
id
Type: System.Guid%The ID of the interface pointer to return.
site
Type: System.IntPtr%The address of the pointer variable that receives the interface pointer.
Implements
IObjectWithSite.GetSite(Guid%, IntPtr%)
Remarks
This method implements the IObjectWithSite interface.
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.