Determines which data source supported by the provider is represented by the given connection string.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'宣言
Public Overridable Function DeriveSource ( _
connectionString As String _
) As Guid
'使用
Dim instance As DataSourceSpecializer
Dim connectionString As String
Dim returnValue As Guid
returnValue = instance.DeriveSource(connectionString)
public virtual Guid DeriveSource(
string connectionString
)
public:
virtual Guid DeriveSource(
String^ connectionString
)
public function DeriveSource(
connectionString : String
) : Guid
Parameters
connectionString
Type: System.StringConnection string understood by the DDEX provider.
Return Value
Type: System.Guid
Returns a GUID object instance specifying the derived data source for the connection string provided, or Empty if no data source could be determined.
Implements
IVsDataSourceSpecializer.DeriveSource(String)
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.