Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Loads a class factory and registers it with COM.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
Syntax
'Declaration
Function RegisterClassObject ( _
ByRef rclsid As Guid, _
<OutAttribute> ByRef pdwCookie As UInteger _
) As Integer
'Usage
Dim instance As ILocalRegistry4
Dim rclsid As Guid
Dim pdwCookie As UInteger
Dim returnValue As Integer
returnValue = instance.RegisterClassObject(rclsid, _
pdwCookie)
int RegisterClassObject(
ref Guid rclsid,
out uint pdwCookie
)
int RegisterClassObject(
[InAttribute] Guid% rclsid,
[OutAttribute] unsigned int% pdwCookie
)
abstract RegisterClassObject :
rclsid:Guid byref *
pdwCookie:uint32 byref -> int
function RegisterClassObject(
rclsid : Guid,
pdwCookie : uint
) : int
Parameters
- rclsid
Type: System.Guid%
The CLSID to register.
- pdwCookie
Type: System.UInt32%
Reference to the object.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
This method can be called from any thread, but the CLSID will be registered only for the calling apartment.
COM Signature
From vsshell90.idl:
HRESULT RegisterClassObject(
[in] REFCLSID rclsid,
[out] DWORD* pdwCookie
);
.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.