DataSourceInformation.AddProperty Method (String, Object)

Adds a property and its value 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, _
    value As Object _
)
'使用
Dim propertyName As String
Dim value As Object

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

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 is typically called by derived classes, normally in their constructors, to indicate that a particular property is supported and has a specific value.

Permissions

See Also

Reference

DataSourceInformation Class

DataSourceInformation Members

AddProperty Overload

Microsoft.VisualStudio.Data.Framework Namespace

AddProperty