XmlnsDictionary Třída
Definice
Představuje slovník, který obsahuje mapování xmlns pro obory názvů XAML v subsystému WPF.Represents a dictionary that contains xmlns mappings for XAML namespaces in WPF.
public ref class XmlnsDictionary : System::Collections::IDictionary, System::Xaml::IXamlNamespaceResolver
public ref class XmlnsDictionary : System::Collections::IDictionary
public class XmlnsDictionary : System.Collections.IDictionary, System.Xaml.IXamlNamespaceResolver
public class XmlnsDictionary : System.Collections.IDictionary
type XmlnsDictionary = class
interface ICollection
interface IEnumerable
interface IDictionary
interface IXamlNamespaceResolver
type XmlnsDictionary = class
interface IDictionary
interface ICollection
interface IEnumerable
type XmlnsDictionary = class
interface IDictionary
interface ICollection
interface IEnumerable
interface IXamlNamespaceResolver
Public Class XmlnsDictionary
Implements IDictionary, IXamlNamespaceResolver
Public Class XmlnsDictionary
Implements IDictionary
- Dědičnost
-
XmlnsDictionary
- Implementuje
Poznámky
XmlnsDictionary mapuje předpony oboru názvů XAML na úplný identifikátor URI oboru názvů XAML.XmlnsDictionary maps XAML namespace prefixes to the complete XAML namespace URI. Pro použití XAML v aplikacích a oborech názvů XAML obecně není identifikátor URI často identifikátor URI ve stylu schématu, který obsahuje http://
.For XAML usage in applications and XAML namespaces in general, the URI is often not a schema-style URI that includes http://
. Místo toho je uživatelem definované mapování na obor názvů a sestavení CLR.It is instead a user-defined mapping to a CLR namespace and assembly. Toto sestavení obsahuje typy zálohování, na které se odkazuje.That assembly contains the backing types being referred to. Podrobnosti najdete v tématu obory názvů XAML a mapování oboru názvů pro WPF XAML.For details, see XAML Namespaces and Namespace Mapping for WPF XAML.
XmlnsDictionaryPřidá koncept oboru oboru názvů XAML.The XmlnsDictionary adds the concept of scope for a XAML namespace. Výchozí hodnota IDictionary může obsahovat klíče předpony a hodnoty identifikátoru URI oboru názvů XML.A default IDictionary might contain prefix keys and XML namespace URI values. Koncept oboru je v XmlnsDictionary paralelním konceptu XML, že předpona může být Předefinovaná.The scope concept in XmlnsDictionary parallels the XML concept that a prefix might be redefined. Pokud ano, předefinování se vztahuje pouze na tuto úroveň nebo níže v zobrazení modelu XML (předchozí definice se použije na vyšší úrovni v modelu DOM).If so, the redefinition only applies at that level or below in a DOM view of the XML (the previous definition applies at higher level in the DOM). Koncept oboru je většinou abstrakce v XmlnsDictionary rozhraní API, takže můžete volat rozhraní API, například LookupNamespace bez toho, aby se o oboru zahodily.The scope concept is mostly abstracted away in the XmlnsDictionary API, such that you can call APIs such as LookupNamespace without being concerned about scope. Nicméně XmlnsDictionary zpřístupňuje PushScope a PopScope tak, aby se vlastní ParserContext implementace, kterou mění obor, mohla synchronizovat s oborem pro XmlnsDictionary .However, XmlnsDictionary does expose PushScope and PopScope so that a custom ParserContext implementation that changes scope can synchronize with the scope for the XmlnsDictionary.
Konstruktory
XmlnsDictionary() |
Inicializuje novou instanci XmlnsDictionary třídy.Initializes a new instance of the XmlnsDictionary class. |
XmlnsDictionary(XmlnsDictionary) |
Inicializuje novou instanci XmlnsDictionary třídy pomocí zadaného slovníku jako zdroje kopie.Initializes a new instance of the XmlnsDictionary class by using the specified dictionary as a copy source. |
Vlastnosti
Count |
Získá počet položek v XmlnsDictionary .Gets the number of items in the XmlnsDictionary. |
IsFixedSize |
Získá hodnotu, která označuje, zda XmlnsDictionary je velikost pevná.Gets a value that indicates whether the size of the XmlnsDictionary is fixed. |
IsReadOnly |
Získá hodnotu, která označuje, zda XmlnsDictionary je pouze pro čtení.Gets a value that indicates whether the XmlnsDictionary is read-only. |
IsSynchronized |
Načte hodnotu, která označuje, jestli je přístup k XmlnsDictionary vláknu bezpečný.Gets a value that indicates whether access to this XmlnsDictionary is thread safe. |
Item[Object] |
Získá nebo nastaví identifikátor URI oboru názvů XAML přidružený k zadané předponě.Gets or sets the XAML namespace URI associated with the specified prefix. |
Item[String] |
Získá nebo nastaví identifikátor URI oboru názvů XAML přidružený k zadané předponě.Gets or sets the XAML namespace URI associated with the specified prefix. |
Keys |
Získá kolekci všech klíčů v XmlnsDictionary .Gets a collection of all the keys in the XmlnsDictionary. |
Sealed |
Získá hodnotu, která označuje, zda XmlnsDictionary je zapečetěná.Gets a value that indicates whether the XmlnsDictionary is sealed. |
SyncRoot |
Získává objekt, který lze použít k synchronizaci přístupu k XmlnsDictionary .Gets an object that can be used to synchronize access to the XmlnsDictionary. |
Values |
Získá kolekci všech hodnot v XmlnsDictionary .Gets a collection of all the values in the XmlnsDictionary. |
Metody
Add(Object, Object) |
Přidá k tomuto typu dvojici prefix-URI XmlnsDictionary .Adds a prefix-URI pair to this XmlnsDictionary. |
Add(String, String) |
Přidá k tomuto typu dvojici prefix-URI XmlnsDictionary .Adds a prefix-URI pair to this XmlnsDictionary. |
Clear() |
Odebere všechny položky z tohoto XmlnsDictionary .Removes all entries from this XmlnsDictionary. |
Contains(Object) |
Vrátí hodnotu, která označuje, zda je uveden zadaný klíč předpony XmlnsDictionary .Returns a value that indicates whether the specified prefix key is in this XmlnsDictionary. |
CopyTo(Array, Int32) |
Zkopíruje položky v poli XmlnsDictionary do určeného pole.Copies the entries in the XmlnsDictionary to the specified array. |
CopyTo(DictionaryEntry[], Int32) |
Zkopíruje položky v poli XmlnsDictionary do určeného DictionaryEntry pole.Copies the entries in the XmlnsDictionary to the specified DictionaryEntry array. |
DefaultNamespace() |
Vyhledá obor názvů XAML, který odpovídá výchozímu oboru názvů XAML.Looks up the XAML namespace that corresponds to the default XAML namespace. |
Equals(Object) |
Určí, zda se zadaný objekt rovná aktuálnímu objektu.Determines whether the specified object is equal to the current object. (Zděděno od Object) |
GetDictionaryEnumerator() |
Vrátí enumerátor slovníku, který projde tímto XmlnsDictionary .Returns a dictionary enumerator that iterates through this XmlnsDictionary. |
GetEnumerator() |
Vrátí enumerátor, který projde tímto XmlnsDictionary .Returns an enumerator that iterates through this XmlnsDictionary. |
GetHashCode() |
Slouží jako výchozí funkce hash.Serves as the default hash function. (Zděděno od Object) |
GetNamespace(String) |
Načte obor názvů XAML pro zadaný řetězec předpony.Retrieves a XAML namespace for the provided prefix string. |
GetNamespacePrefixes() |
Vrátí všechny možné předpony oboru názvů XAML ( NamespaceDeclaration hodnoty), které jsou k dispozici v aktivním kontextu schématu.Returns all possible prefix-XAML namespace mappings (NamespaceDeclaration values) that are available in the active schema context. |
GetType() |
Získá Type aktuální instanci.Gets the Type of the current instance. (Zděděno od Object) |
LookupNamespace(String) |
Vrátí identifikátor URI oboru názvů jazyka XAML, který odpovídá zadané předponě oboru názvů XML.Returns the XAML namespace URI that corresponds to the specified XML namespace prefix. |
LookupPrefix(String) |
Vrátí předponu, která odpovídá zadanému identifikátoru URI oboru názvů XAML.Returns the prefix that corresponds to the specified XAML namespace URI. |
MemberwiseClone() |
Vytvoří kopii aktuálního seznamu Object .Creates a shallow copy of the current Object. (Zděděno od Object) |
PopScope() |
Je v oboru typu pop XmlnsDictionary .Pops the scope of the XmlnsDictionary. |
PushScope() |
Posune rozsah XmlnsDictionary .Pushes the scope of the XmlnsDictionary. |
Remove(Object) |
Odebere položku se zadaným prefixovým klíčem z XmlnsDictionary .Removes the item with the specified prefix key from the XmlnsDictionary. |
Remove(String) |
Odebere položku se zadaným prefixovým klíčem z XmlnsDictionary .Removes the item with the specified prefix key from the XmlnsDictionary. |
Seal() |
Zamkne slovník, aby jej nebylo možné změnit.Locks the dictionary so that it cannot be changed. |
ToString() |
Vrátí řetězec, který představuje aktuální objekt.Returns a string that represents the current object. (Zděděno od Object) |
Explicitní implementace rozhraní
IDictionary.GetEnumerator() |
Popis tohoto člena naleznete v tématu GetEnumerator() .For a description of this member, see GetEnumerator(). |
IEnumerable.GetEnumerator() |
Popis tohoto člena naleznete v tématu GetEnumerator() .For a description of this member, see GetEnumerator(). |
Metody rozšíření
Cast<TResult>(IEnumerable) |
Přetypování prvky IEnumerable na zadaný typ.Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Filtruje prvky IEnumerable založené na zadaném typu.Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Povoluje paralelní zpracování dotazu.Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Převede IEnumerable na IQueryable .Converts an IEnumerable to an IQueryable. |