DataConnectionProperties.InitializeValue Method

Initializes the value of a specified connection property.

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

Syntax

'宣言
Protected Sub InitializeValue ( _
    propertyName As String, _
    value As Object _
)
'使用
Dim propertyName As String
Dim value As Object

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

Parameters

  • propertyName
    Type: System.String

    The name of a property being initialized.

  • value
    Type: System.Object

    The value to which the property is initialized.

Exceptions

Exception Condition
ArgumentNullException

The propertyName parameter is null.

InvalidCastException

The specified value cannot be converted to the property type.

Remarks

This method is normally only called by the InitializeValues method.

Permissions

See Also

Reference

DataConnectionProperties Class

DataConnectionProperties Members

Microsoft.VisualStudio.Data Namespace