Tests the connection based on the properties specified in the connection dialog box.
Namespace: Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'宣言
Sub Test ( _
connectionUIProperties As IVsDataConnectionUIProperties _
)
'使用
Dim instance As IVsDataConnectionUITester
Dim connectionUIProperties As IVsDataConnectionUIProperties
instance.Test(connectionUIProperties)
void Test(
IVsDataConnectionUIProperties connectionUIProperties
)
void Test(
IVsDataConnectionUIProperties^ connectionUIProperties
)
function Test(
connectionUIProperties : IVsDataConnectionUIProperties
)
Parameters
connectionUIProperties
Type: Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataConnectionUIPropertiesContains the connection properties specified in the data connection dialog box.
Remarks
This method attempts to create a IVsDataConnection connection object through the IVsDataConnectionFactory service by supplying the UI connection properties. Next, it gets the IVsDataConnectionSupport service through the connection object it just created.
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.
See Also
Reference
IVsDataConnectionUITester Interface
IVsDataConnectionUITester Members
Microsoft.VisualStudio.Data.Services.SupportEntities Namespace