GetExtensionResourceTypeOrName() private static method

Gets either a resource type or resource Id based on the value of the getResourceName parameter.
private static GetExtensionResourceTypeOrName ( string resourceId, bool getResourceName, bool includeProviderNamespace = true ) : string
resourceId string The resource Id.
getResourceName bool When set to true returns a resource name, otherwise a resource type.
includeProviderNamespace bool Indicates if the provider namespace should be included in the resource name.
return string
 /// <summary>
 /// Gets a resource name
 /// </summary>
 /// <param name="resourceId">The resource Id.</param>
 public static string GetExtensionResourceName(string resourceId)
 {
     return(ResourceIdUtility.GetExtensionResourceTypeOrName(resourceId: resourceId, getResourceName: true));
 }
 /// <summary>
 /// Gets a resource type
 /// </summary>
 /// <param name="resourceId">The resource Id.</param>
 /// <param name="includeProviderNamespace">Indicates if the provider namespace should be included in the resource name.</param>
 public static string GetExtensionResourceType(string resourceId, bool includeProviderNamespace = true)
 {
     return(ResourceIdUtility.GetExtensionResourceTypeOrName(resourceId: resourceId, includeProviderNamespace: includeProviderNamespace, getResourceName: false));
 }