Gets a property of the DDEX data source.
Namespace: Microsoft.VisualStudio.Data.Core
Assembly: Microsoft.VisualStudio.Data.Core (in Microsoft.VisualStudio.Data.Core.dll)
Syntax
'宣言
Function GetProperty ( _
name As String _
) As Object
'使用
Dim instance As IVsDataSource
Dim name As String
Dim returnValue As Object
returnValue = instance.GetProperty(name)
Object GetProperty(
string name
)
Object^ GetProperty(
String^ name
)
function GetProperty(
name : String
) : Object
Parameters
name
Type: System.StringThe name of the property to retrieve.
Return Value
Type: System.Object
The value of the property, if it exists; otherwise, a null reference (Nothing in Visual Basic).
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | The name parameter is a null reference (Nothing in Visual Basic). |
Remarks
This method delegates to the GetProperty method, passing an Empty as the value of the provider parameter.
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.