Share via


DSRefBuilder.BuildDSRef Method

Builds a DSRef object that identifies a data object with the specified type and identifier.

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

Syntax

'Declaration
Public Function BuildDSRef ( _
    typeName As String, _
    identifier As Object(), _
    parameters As Object() _
) As Object
public Object BuildDSRef(
    string typeName,
    Object[] identifier,
    Object[] parameters
)
public:
Object^ BuildDSRef(
    String^ typeName, 
    array<Object^>^ identifier, 
    array<Object^>^ parameters
)
member BuildDSRef : 
        typeName:string * 
        identifier:Object[] * 
        parameters:Object[] -> Object 
public function BuildDSRef(
    typeName : String, 
    identifier : Object[], 
    parameters : Object[]
) : Object

Parameters

  • identifier
    Type: array<System.Object[]
    The identifier of the object.
  • parameters
    Type: array<System.Object[]
    An array whose contents are defined by the particular implementation of BuildDSRef method and specified by the Data Object Support XML. Such information can be used to provide extra data indicating how to build the DSRef object. This allows an implementation of BuildDSRef to be more data driven.

Return Value

Type: System.Object
Returns a DSRef object that identifies a specified data object.

Exceptions

Exception Condition
ArgumentNullException

The typeName and/or identifier parameters are null.

ArgumentException

The parameters argument is in an invalid format.

ExternalException

Could not create DSRef object.

Remarks

The base implementation of this method will create a DSRef object and delegate to AppendToDSRef.

.NET Framework Security

See Also

Reference

DSRefBuilder Class

Microsoft.VisualStudio.Data Namespace