| MvComponentGetViewTypesAsync Method |
Queries the list of views available on a given object,
according to some patterns.
Namespace:
RW.Server.Component
Assembly:
RW.Server.Component (in RW.Server.Component.dll) Version: 7.2.0.0 (7.2.0.0)
Syntax public Task<ICollection<ViewDescription>> GetViewTypesAsync(
string objId,
string viewPattern = "*",
string viewTypePattern = "*",
bool caseSensitive = false
)
Public Function GetViewTypesAsync (
objId As String,
Optional viewPattern As String = "*",
Optional viewTypePattern As String = "*",
Optional caseSensitive As Boolean = false
) As Task(Of ICollection(Of ViewDescription))
public:
Task<ICollection<ViewDescription^>^>^ GetViewTypesAsync(
String^ objId,
String^ viewPattern = L"*",
String^ viewTypePattern = L"*",
bool caseSensitive = false
)
Parameters
- objId
- Type: SystemString
The object name (as declared with
IlsMvServer::DeclObjectLabel()
on the server side). - viewPattern (Optional)
- Type: SystemString
The pattern for the view name.
- viewTypePattern (Optional)
- Type: SystemString
The pattern for the view type.
- caseSensitive (Optional)
- Type: SystemBoolean
true if the search must be
case sensitive.
Return Value
Type:
TaskICollectionViewDescriptionnull if the component is not connected. Otherwise,
it returns asynchronously the list of
ViewDescriptions.
Remarks
The request is asynchronous. You can use the async/await pattern.
See Also