Compartir a través de


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

'Declaration
Protected Sub InitializeValue ( _
    propertyName As String, _
    value As Object _
)
protected void InitializeValue(
    string propertyName,
    Object value
)
protected:
void InitializeValue(
    String^ propertyName, 
    Object^ value
)
member InitializeValue : 
        propertyName:string * 
        value:Object -> unit
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.

.NET Framework Security

See Also

Reference

DataConnectionProperties Class

Microsoft.VisualStudio.Data Namespace