DataProvider.GetProperty Method

Retrieves a generically known or DDEX provider-specific property.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'宣言
Public MustOverride Function GetProperty ( _
    name As String _
) As Object
'使用
Dim instance As DataProvider
Dim name As String
Dim returnValue As Object

returnValue = instance.GetProperty(name)
public abstract Object GetProperty(
    string name
)
public:
virtual Object^ GetProperty(
    String^ name
) abstract
public abstract function GetProperty(
    name : String
) : Object

Parameters

Return Value

Type: System.Object

Returns a specified property.

Exceptions

Exception Condition
ArgumentNullException

The name parameter is null.

Remarks

This method looks for values beneath a provider's registry root. A cache of property name/value pairs is maintained and not refreshed, so once a property has been retrieved, a given instance of Visual Studio will not pick up a change in the registry until Visual Studio is restarted.

Permissions

See Also

Reference

DataProvider Class

DataProvider Members

Microsoft.VisualStudio.Data Namespace