TableSublayerSource constructor
Create a table sublayer source from a workspace ID and a data source name.
Parameters:
workspaceId
— The workspace id.dataSourceName
— The data source name.
Implementation
factory TableSublayerSource({
required String workspaceId,
required String dataSourceName,
}) {
_initializeArcGISEnvironmentIfNeeded();
final coreWorkspaceId = _CString(workspaceId);
final coreDataSourceName = _CString(dataSourceName);
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_TableSublayerSource_createWithIdAndName(
coreWorkspaceId.bytes,
coreDataSourceName.bytes,
errorHandler,
);
});
return TableSublayerSource._withHandle(handle);
}