IVsDataProvider.GetMainAssembly Method
Gets the provider’s main assembly.
Namespace: Microsoft.VisualStudio.Data.Core
Assembly: Microsoft.VisualStudio.Data.Core (in Microsoft.VisualStudio.Data.Core.dll)
Syntax
'Declaración
Function GetMainAssembly As Assembly
Assembly GetMainAssembly()
Assembly^ GetMainAssembly()
abstract GetMainAssembly : unit -> Assembly
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.
.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.