DataObjectSelector.GetRequiredRestrictions Method (String, [])

Retrieves a list of the restrictions that are required when data objects are selected for the specified type.

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

Syntax

'宣言
Protected Overridable Function GetRequiredRestrictions ( _
    typeName As String, _
    parameters As Object() _
) As IList(Of String)
'使用
Dim typeName As String
Dim parameters As Object()
Dim returnValue As IList(Of String)

returnValue = Me.GetRequiredRestrictions(typeName, _
    parameters)
protected virtual IList<string> GetRequiredRestrictions(
    string typeName,
    Object[] parameters
)
protected:
virtual IList<String^>^ GetRequiredRestrictions(
    String^ typeName, 
    array<Object^>^ parameters
)
protected function GetRequiredRestrictions(
    typeName : String, 
    parameters : Object[]
) : IList<String>

Parameters

  • typeName
    Type: System.String

    The data source–specific type name for which to get the required restrictions.

  • parameters
    Type: []

    An array containing the parameters for the specified type.

Return Value

Type: System.Collections.Generic.IList<String>

A list of the restrictions that are required when retrieving data objects for the current type.

Exceptions

Exception Condition
ArgumentNullException

The typeName parameter is a null reference (Nothing in Visual Basic).

ArgumentException

One or more values in parameters are not valid.

Permissions

See Also

Reference

DataObjectSelector Class

DataObjectSelector Members

GetRequiredRestrictions Overload

Microsoft.VisualStudio.Data.Framework Namespace