Partager via


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

'Declaration
Protected Sub AddProperty ( _
    propertyName As String _
)
protected void AddProperty(
    string propertyName
)
protected:
void AddProperty(
    String^ propertyName
)
member AddProperty : 
        propertyName:string -> unit
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 nulla 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.

.NET Framework Security

See Also

Reference

DataSourceInformation Class

AddProperty Overload

Microsoft.VisualStudio.Data.Framework Namespace

AddProperty