DataSourceInformation.AddProperty Method (String)

Adds a property to the list of supported properties.

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

Syntax

'宣言
Protected Sub AddProperty ( _
    propertyName As String _
)
'使用
Dim propertyName As String

Me.AddProperty(propertyName)
protected void AddProperty(
    string propertyName
)
protected:
void AddProperty(
    String^ propertyName
)
protected function AddProperty(
    propertyName : String
)

Parameters

  • propertyName
    Type: System.String

    The name of a data source information property.

Exceptions

Exception Condition
ArgumentNullException

The propertyName parameter is a null reference (Nothing in Visual Basic).

Remarks

This method calls AddProperty to add the given property and passes a specific object instance as the value parameter to indicate an unretrieved value. This is used later when retrieving the property to determine that the RetrieveValue method should be called.

Permissions

See Also

Reference

DataSourceInformation Class

DataSourceInformation Members

AddProperty Overload

Microsoft.VisualStudio.Data.Framework Namespace

AddProperty