IVsDataSource.DefaultProvider Property
Gets the default provider that supports the DDEX data source.
Namespace: Microsoft.VisualStudio.Data.Core
Assembly: Microsoft.VisualStudio.Data.Core (in Microsoft.VisualStudio.Data.Core.dll)
Syntax
‘선언
ReadOnly Property DefaultProvider As Guid
Get
Guid DefaultProvider { get; }
property Guid DefaultProvider {
Guid get ();
}
abstract DefaultProvider : Guid
function get DefaultProvider () : Guid
Property Value
Type: System.Guid
The default provider that supports the DDEX data source.
Remarks
Each DDEX data source is represented by one or more supporting DDEX providers. In most cases, there is a default provider associated with each data source, typically produced by the same company that produces the data source technology. For example, the Microsoft SQL Server data source has the default provider .NET Framework Data Provider for SQL Server. Both the data source technology and the default provider are produced by Microsoft.
This property determines the default provider by calling the GetProperty method, passing in the parameter DefaultProvider, to retrieve a string representation of the default provider GUID. If this succeeds, the property attempts to convert the string into a Guid value. If this succeeds, the property verifies that the GUID matches one of the data source’s supporting providers. If any one of these steps fail, the property returns an empty GUID.
.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.