Class FrameworkConfig
A static class providing common methods and properties related to configuration files of the framework libraries.
Inheritance
Inherited Members
Namespace: Juhta.Net.Framework
Assembly: Juhta.Net.dll
Syntax
public static class FrameworkConfig
Properties
| Improve this Doc View SourceCommonConfigSchemaFileName
Gets the file name of the common configuration XML schema.
Declaration
public static string CommonConfigSchemaFileName { get; }
Property Value
Type | Description |
---|---|
System.String |
CommonConfigSchemaFileNamespace
Gets the file namespace of the common configuration XML schema.
Declaration
public static string CommonConfigSchemaFileNamespace { get; }
Property Value
Type | Description |
---|---|
System.String |
CommonConfigSchemaVersion
Gets the version of the common configuration XML schema.
Declaration
public static string CommonConfigSchemaVersion { get; }
Property Value
Type | Description |
---|---|
System.String |
RootXmlns
Gets the root XML namespace for the configuration schemas of the framework libraries.
Declaration
public static string RootXmlns { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceCreateNamespaceManager(String, XmlNode, String)
Creates an System.Xml.XmlNamespaceManager object corresponding to a specified framework library, XML configuration and schema version.
Declaration
public static XmlNamespaceManager CreateNamespaceManager(string libraryFileName, XmlNode anyConfigNode, string schemaVersion)
Parameters
Type | Name | Description |
---|---|---|
System.String | libraryFileName | Specifies a framework library file name. |
System.Xml.XmlNode | anyConfigNode | Specifies an System.Xml.XmlNode object containing in a library configuration. |
System.String | schemaVersion | Specifies the schema version of the library configuration. |
Returns
Type | Description |
---|---|
System.Xml.XmlNamespaceManager | Returns the created System.Xml.XmlNamespaceManager object specified by the parameters. |
GetEmbeddedCommonConfigSchema()
Gets the embedded schema for the common configuration.
Declaration
public static XmlSchema GetEmbeddedCommonConfigSchema()
Returns
Type | Description |
---|---|
System.Xml.Schema.XmlSchema | Returns the embedded schema for the common configuration. |
GetEmbeddedConfigSchema(Assembly)
Gets the default embedded configuration schema from a specified assembly.
Declaration
public static XmlSchema GetEmbeddedConfigSchema(Assembly containingAssembly)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.Assembly | containingAssembly | Specifies an assembly where the default embedded configuration schema will be searched for. |
Returns
Type | Description |
---|---|
System.Xml.Schema.XmlSchema | Returns the default embedded configuration schema from the specified assembly. |
GetEmbeddedConfigSchema(Assembly, String, String)
Gets an embedded configuration schema from a specified assembly.
Declaration
public static XmlSchema GetEmbeddedConfigSchema(Assembly containingAssembly, string configSchemaFileNamespace, string configSchemaFileName)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.Assembly | containingAssembly | Specifies an assembly where an embedded configuration schema will be searched for. |
System.String | configSchemaFileNamespace | Specifies the file namespace of an embedded configuration schema. |
System.String | configSchemaFileName | Specifies the file name of an embedded configuration schema. |
Returns
Type | Description |
---|---|
System.Xml.Schema.XmlSchema | Returns the embedded configuration schema from the specified assembly corresponding to the specified file namespace and name. |
GetLibraryConfigXmlns(String, String)
Gets the configuration schema namespace for a framework library.
Declaration
public static string GetLibraryConfigXmlns(string libraryFileName, string schemaVersion)
Parameters
Type | Name | Description |
---|---|---|
System.String | libraryFileName | Specifies a framework library file name. |
System.String | schemaVersion | Specifies a schema version. |
Returns
Type | Description |
---|---|
System.String | Returns the configuration schema namespace for the specified framework library. |