This documentation is archived and is not being maintained.

BamlLocalizationDictionary Class

Contains all the localizable resources in a BAML record.

System::Object
  System.Windows.Markup.Localizer::BamlLocalizationDictionary

Namespace:  System.Windows.Markup.Localizer
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: Not mapped to an xmlns.

public ref class BamlLocalizationDictionary sealed : IDictionary, 
	ICollection, IEnumerable

The BamlLocalizationDictionary type exposes the following members.

  NameDescription
Public methodBamlLocalizationDictionaryInitializes a new instance of the BamlLocalizationDictionary class.
Top

  NameDescription
Public propertyCountGets the number of localizable resources in the BamlLocalizationDictionary.
Public propertyIsFixedSizeGets a value that indicates whether the BamlLocalizationDictionary object has a fixed size.
Public propertyIsReadOnlyGets a value that indicates whether the BamlLocalizationDictionary object is read-only.
Public propertyItemGets or sets a localizable resource specified by its key.
Public propertyKeysGets a collection that contains all the keys in the BamlLocalizationDictionary object.
Public propertyRootElementKeyGets the key of the root element, if it is localizable.
Public propertyValuesGets a collection that contains all the values in the BamlLocalizationDictionary.
Top

  NameDescription
Public methodAddAdds an item with the provided key and value to the BamlLocalizationDictionary.
Public methodClearDeletes all resources from the BamlLocalizationDictionary object.
Public methodContainsDetermines whether a BamlLocalizationDictionary object contains a resource with a specified key.
Public methodCopyToCopies the contents of a BamlLocalizationDictionary object to a one-dimensional array of DictionaryEntry objects, starting at a specified index.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetEnumeratorReturns an enumerator that iterates through the BamlLocalizationDictionary.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRemoveRemoves a specified localizable resource from the BamlLocalizationDictionary.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public Extension MethodAsParallelEnables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension MethodAsQueryableConverts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodCast<TResult>Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodOfType<TResult>Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

  NameDescription
Explicit interface implemetationPrivate methodICollection::CopyToInfrastructure. For a description of this member, see ICollection::CopyTo.
Explicit interface implemetationPrivate propertyICollection::CountInfrastructure. For a description of this member, see ICollection::Count.
Explicit interface implemetationPrivate propertyICollection::IsSynchronizedInfrastructure. For a description of this member, see ICollection::IsSynchronized.
Explicit interface implemetationPrivate propertyICollection::SyncRootInfrastructure. For a description of this member, see ICollection::SyncRoot.
Explicit interface implemetationPrivate methodIDictionary::AddInfrastructure. For a description of this member, see IDictionary::Add.
Explicit interface implemetationPrivate methodIDictionary::ContainsInfrastructure. For a description of this member, see IDictionary::Contains.
Explicit interface implemetationPrivate methodIDictionary::GetEnumeratorInfrastructure. For a description of this member, see IDictionary::GetEnumerator.
Explicit interface implemetationPrivate propertyIDictionary::ItemInfrastructure. For a description of this member, see IDictionary::Item.
Explicit interface implemetationPrivate methodIDictionary::RemoveInfrastructure. For a description of this member, see IDictionary::Remove.
Explicit interface implemetationPrivate methodIEnumerable::GetEnumeratorInfrastructure. For a description of this member, see IEnumerable::GetEnumerator.
Top

The dictionary contains a mapping from resource keys (specified as BamlLocalizableResourceKey objects) to resource values (specified as BamlLocalizableResource objects).

The following example demonstrates how to use a BamlLocalizationDictionary.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: