Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds a property and its value to the list of supported properties.
Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Protected Sub AddProperty ( _
    propertyName As String, _
    value As Object _
)
protected void AddProperty(
    string propertyName,
    Object value
)
protected:
void AddProperty(
    String^ propertyName, 
    Object^ value
)
member AddProperty : 
        propertyName:string * 
        value:Object -> unit
protected function AddProperty(
    propertyName : String, 
    value : Object
)
Parameters
- propertyName 
 Type: System.String- The name of a data source information property. 
- value 
 Type: System.Object- The value for the property. 
Exceptions
| Exception | Condition | 
|---|---|
| ArgumentNullException | The propertyName parameter is null. | 
Remarks
This method is typically called by derived classes, normally in their constructor, to indicate that a particular property is supported and has a specific value. There are many properties that provide static information and can be initialized with the constructor rather than waiting until the property is actually requested.
.NET Framework Security
- 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.