Note
For more details see the Auto Appending section at the description of the DynamicResourceManager class.
public override IExpandoResourceSet? GetExpandoResourceSet(
CultureInfo culture,
ResourceSetRetrieval behavior = ResourceSetRetrieval.LoadIfExists,
bool tryParents = false
)
Public Overrides Function GetExpandoResourceSet (
culture As CultureInfo,
Optional behavior As ResourceSetRetrieval = ResourceSetRetrieval.LoadIfExists,
Optional tryParents As Boolean = false
) As IExpandoResourceSet
public:
virtual IExpandoResourceSet^ GetExpandoResourceSet(
CultureInfo^ culture,
ResourceSetRetrieval behavior = ResourceSetRetrieval::LoadIfExists,
bool tryParents = false
) override
abstract GetExpandoResourceSet :
culture : CultureInfo *
?behavior : ResourceSetRetrieval *
?tryParents : bool
(* Defaults:
let _behavior = defaultArg behavior ResourceSetRetrieval.LoadIfExists
let _tryParents = defaultArg tryParents false
*)
-> IExpandoResourceSet
override GetExpandoResourceSet :
culture : CultureInfo *
?behavior : ResourceSetRetrieval *
?tryParents : bool
(* Defaults:
let _behavior = defaultArg behavior ResourceSetRetrieval.LoadIfExists
let _tryParents = defaultArg tryParents false
*)
-> IExpandoResourceSet
If AppendOnLoad option is enabled in AutoAppend property, then dynamic expansion of the resource sets may occur when calling this method.
Appending is applied only if behavior is not GetIfAlreadyLoaded and tryParents is .
If due to the current parameters no auto appending is performed during the call, then it will not happen also for successive calls for the same resource set until the ReleaseAllResources method is called.
ArgumentNullException | culture is . |
ObjectDisposedException | The DynamicResourceManager is already disposed. |
ArgumentOutOfRangeException | behavior does not fall in the expected range. |
MissingManifestResourceException | Resource file of the neutral culture was not found, while tryParents is and behavior is not CreateIfNotExists. |