ArcGIS Pro 2.7 API Reference Guide
GetDefinition<T> Method (FileSystemDatastore)

ArcGIS.Core.Data Namespace > FileSystemDatastore Class : GetDefinition<T> Method
The type of dataset definition.
The name of the dataset.
Gets a specific Definition instance associated with name of type T in the file-system data store. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public T GetDefinition<T>( 
   string name
)
where T: Definition
Public Function GetDefinition(Of T As Definition)( _
   ByVal name As String _
) As T

Parameters

name
The name of the dataset.

Type Parameters

T
The type of dataset definition.

Return Value

A specific Definition instance corresponding to type T or UnknownDefinition if T is not supported.
Exceptions
ExceptionDescription

No valid data store has been opened prior to calling this operation.

-or-

The DatasetType corresponding to type T is not supported.

name is null or an empty string.
name does not exist or cannot be opened in the data store.
A geodatabase-related exception has occurred.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

FileSystemDatastore Class
FileSystemDatastore Members