Gets the provider’s main assembly.
Namespace: Microsoft.VisualStudio.Data.Core
Assembly: Microsoft.VisualStudio.Data.Core (in Microsoft.VisualStudio.Data.Core.dll)
Syntax
'宣言
Function GetMainAssembly As Assembly
'使用
Dim instance As IVsDataProvider
Dim returnValue As Assembly
returnValue = instance.GetMainAssembly()
Assembly GetMainAssembly()
Assembly^ GetMainAssembly()
function GetMainAssembly() : Assembly
Return Value
Type: System.Reflection.Assembly
An Assembly object that represents the provider’s main assembly.
Exceptions
| Exception | Condition |
|---|---|
| [<ANY>] | The DDEX provider’s GetAssembly implementation threw an exception. |
Remarks
This method delegates to the GetAssembly method, passing Empty as the value of the assemblyString parameter. It is expected that a DDEX provider will implement the GetAssembly method in such a way that when an empty assembly string is passed in, it returns the main assembly. This is typically the assembly that contains the set of core support entity implementations.
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.