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.StringThe 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
- 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.