An attribute that can be used on the assembly level
to help with the automatic XAML-like serialization of the classes in that assembly.
Namespace: yWorks.SupportAssembly: yWorks.yFilesNET.Viewer (in yWorks.yFilesNET.Viewer.dll) Version: 4.1.0.1 (4.1.0.1)
Syntax
| C# |
|---|
[AttributeUsageAttribute(AttributeTargets.Assembly, AllowMultiple = true)] public class XmlnsDefinitionAttribute : Attribute |
| Visual Basic |
|---|
<AttributeUsageAttribute(AttributeTargets.Assembly, AllowMultiple := True)> _ Public Class XmlnsDefinitionAttribute _ Inherits Attribute |
Remarks
This attribute can be used to tell the serialization engine which symbolic namespace URIs to use for certain CLR namespaces in the assembly this attribute is declared for.
The actual XAML serialization process is free to ignore this prefix if necessary.
Examples
This sample shows how to map the CLR namespaces Foo.Bar and Foo.Baz both to the XML namespace http://foo.bar
and associate the default XML prefix foo with this namespace:
CopyC#
[assembly: XmlnsDefinition("http://foo.bar", "Foo.Bar")] [assembly: XmlnsDefinition("http://foo.bar", "Foo.Baz")] [assembly: XmlnsPrefix("http://foo.bar", "foo")]
Inheritance Hierarchy
System..::..Object
System..::..Attribute
yWorks.Support..::..XmlnsDefinitionAttribute
System..::..Attribute
yWorks.Support..::..XmlnsDefinitionAttribute