IVsDataObjectStore.GetRequiredRestrictions Method

Returns the restrictions that are required for selecting objects of the specified type from the object store.

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

Syntax

'宣言
Function GetRequiredRestrictions ( _
    typeName As String _
) As IList(Of String)
'使用
Dim instance As IVsDataObjectStore
Dim typeName As String
Dim returnValue As IList(Of String)

returnValue = instance.GetRequiredRestrictions(typeName)
IList<string> GetRequiredRestrictions(
    string typeName
)
IList<String^>^ GetRequiredRestrictions(
    String^ typeName
)
function GetRequiredRestrictions(
    typeName : String
) : IList<String>

Parameters

  • typeName
    Type: System.String

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

Return Value

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

A list of string values representing the required restrictions.

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

The restrictions act as a filter to limit the number of objects returned from the object store.

Permissions

See Also

Reference

IVsDataObjectStore Interface

IVsDataObjectStore Members

Microsoft.VisualStudio.Data.Services Namespace