Beispiel #1
0
 /// <summary>
 ///     Finds the <see cref="IFeatureClass" /> that has been assigned the <paramref name="modelName" /> that is within the
 ///     specified <paramref name="source" />.
 /// </summary>
 /// <param name="source">The workspace</param>
 /// <param name="modelName">Name of the model.</param>
 /// <param name="throwException">
 ///     if set to <c>true</c> if an exception should be thrown when the model name is not
 ///     assigned.
 /// </param>
 /// <returns>
 ///     Returns a <see cref="IFeatureClass" /> representing the feature class that has been assigned the class model name,
 ///     otherwise <c>null</c>.
 /// </returns>
 /// <exception cref="ArgumentNullException">modelName</exception>
 /// <exception cref="MissingClassModelNameException"></exception>
 public static IFeatureClass GetFeatureClassAsync(this IFeatureDataset source, string modelName, bool throwException)
 {
     return(Task.Wait(() => source.GetFeatureClass(modelName, throwException)));
 }
Beispiel #2
0
 /// <summary>
 ///     Finds the <see cref="IFeatureClass" /> that has been assigned the <paramref name="modelName" /> that is within the
 ///     specified <paramref name="source" />.
 /// </summary>
 /// <param name="source">The workspace</param>
 /// <param name="modelName">Name of the model.</param>
 /// <returns>
 ///     Returns a <see cref="IFeatureClass" /> representing the feature class that has been assigned the class model name,
 ///     otherwise <c>null</c>.
 /// </returns>
 /// <exception cref="ArgumentNullException">modelName</exception>
 /// <exception cref="MissingClassModelNameException"></exception>
 public static IFeatureClass GetFeatureClass(this IFeatureDataset source, string modelName)
 {
     return(source.GetFeatureClass(modelName, true));
 }