public class Configuration extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Configuration.Configuration
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Configuration.ConfigurationManager, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.Configuration.ConfigurationManager
|
static java.lang.String |
className
Qualified class name: System.Configuration.Configuration
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Configuration() |
Configuration(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Configuration |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Configuration, a cast assert is made to check if types are compatible. |
AppSettingsSection |
getAppSettings()
Gets the value of the .NET property AppSettings.
|
Func_2 |
getAssemblyStringTransformer()
Gets the value of the .NET property AssemblyStringTransformer.
|
ConnectionStringsSection |
getConnectionStrings()
Gets the value of the .NET property ConnectionStrings.
|
ContextInformation |
getEvaluationContext()
Gets the value of the .NET property EvaluationContext.
|
java.lang.String |
getFilePath()
Gets the value of the .NET property FilePath.
|
boolean |
getHasFile()
Gets the value of the .NET property HasFile.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
ConfigurationLocationCollection |
getLocations()
Gets the value of the .NET property Locations.
|
boolean |
getNamespaceDeclared()
Gets the value of the .NET property NamespaceDeclared.
|
ConfigurationSectionGroup |
getRootSectionGroup()
Gets the value of the .NET property RootSectionGroup.
|
ConfigurationSection |
GetSection(java.lang.String sectionName)
Invokes the .NET member GetSection.
|
ConfigurationSectionGroup |
GetSectionGroup(java.lang.String sectionGroupName)
Invokes the .NET member GetSectionGroup.
|
ConfigurationSectionGroupCollection |
getSectionGroups()
Gets the value of the .NET property SectionGroups.
|
ConfigurationSectionCollection |
getSections()
Gets the value of the .NET property Sections.
|
FrameworkName |
getTargetFramework()
Gets the value of the .NET property TargetFramework.
|
Func_2 |
getTypeStringTransformer()
Gets the value of the .NET property TypeStringTransformer.
|
void |
Save()
Invokes the .NET member Save.
|
void |
Save(ConfigurationSaveMode saveMode)
Invokes the .NET member Save.
|
void |
Save(ConfigurationSaveMode saveMode,
boolean forceSaveAll)
Invokes the .NET member Save.
|
void |
SaveAs(java.lang.String filename)
Invokes the .NET member SaveAs.
|
void |
SaveAs(java.lang.String filename,
ConfigurationSaveMode saveMode)
Invokes the .NET member SaveAs.
|
void |
SaveAs(java.lang.String filename,
ConfigurationSaveMode saveMode,
boolean forceSaveAll)
Invokes the .NET member SaveAs.
|
void |
setAssemblyStringTransformer(Func_2 AssemblyStringTransformer)
Sets the value of the .NET property AssemblyStringTransformer.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setNamespaceDeclared(boolean NamespaceDeclared)
Sets the value of the .NET property NamespaceDeclared.
|
void |
setTargetFramework(FrameworkName TargetFramework)
Sets the value of the .NET property TargetFramework.
|
void |
setTypeStringTransformer(Func_2 TypeStringTransformer)
Sets the value of the .NET property TypeStringTransformer.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Configuration()
throws java.lang.Throwable
java.lang.Throwablepublic Configuration(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic static Configuration cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Configuration, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedConfiguration instancejava.lang.Throwable - in case of error during cast operationpublic AppSettingsSection getAppSettings() throws java.lang.Throwable, ConfigurationErrorsException, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, OverflowException, NotSupportedException, ArgumentOutOfRangeException, KeyNotFoundException
java.lang.Throwable - if the call fails in the bridge or in the CLRConfigurationErrorsException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itOverflowException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itKeyNotFoundException - if the .NET member raises itpublic Func_2 getAssemblyStringTransformer() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic ConnectionStringsSection getConnectionStrings() throws java.lang.Throwable, ConfigurationErrorsException, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, OverflowException, NotSupportedException, ArgumentOutOfRangeException, KeyNotFoundException
java.lang.Throwable - if the call fails in the bridge or in the CLRConfigurationErrorsException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itOverflowException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itKeyNotFoundException - if the .NET member raises itpublic ContextInformation getEvaluationContext() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getFilePath()
throws java.lang.Throwable,
ArgumentNullException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itpublic boolean getHasFile()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic ConfigurationLocationCollection getLocations() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic boolean getNamespaceDeclared()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic ConfigurationSectionGroup getRootSectionGroup() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic ConfigurationSection GetSection(java.lang.String sectionName) throws java.lang.Throwable, ConfigurationErrorsException, ArgumentNullException, InvalidOperationException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, OverflowException, NotSupportedException, OutOfMemoryException, RankException, ArrayTypeMismatchException, KeyNotFoundException
sectionName - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRConfigurationErrorsException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itOverflowException - if the .NET member raises itNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itKeyNotFoundException - if the .NET member raises itpublic ConfigurationSectionGroup GetSectionGroup(java.lang.String sectionGroupName) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ConfigurationErrorsException, ArgumentException, PlatformNotSupportedException, CultureNotFoundException, OutOfMemoryException, TypeLoadException, InvalidOperationException, IndexOutOfRangeException
sectionGroupName - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itConfigurationErrorsException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itTypeLoadException - if the .NET member raises itInvalidOperationException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic ConfigurationSectionGroupCollection getSectionGroups() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic ConfigurationSectionCollection getSections() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itpublic FrameworkName getTargetFramework() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic Func_2 getTypeStringTransformer() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Save()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
CultureNotFoundException,
ConfigurationErrorsException,
TypeLoadException,
OutOfMemoryException,
ArrayTypeMismatchException,
MissingMethodException,
TargetInvocationException,
ConfigurationException,
XmlException,
UnreachableException,
FormatException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itConfigurationErrorsException - if the .NET member raises itTypeLoadException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itConfigurationException - if the .NET member raises itXmlException - if the .NET member raises itUnreachableException - if the .NET member raises itFormatException - if the .NET member raises itpublic void Save(ConfigurationSaveMode saveMode) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, CultureNotFoundException, ConfigurationErrorsException, TypeLoadException, OutOfMemoryException, ArrayTypeMismatchException, MissingMethodException, TargetInvocationException, ConfigurationException, XmlException, UnreachableException, FormatException
saveMode - the argument of type ConfigurationSaveModejava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itConfigurationErrorsException - if the .NET member raises itTypeLoadException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itConfigurationException - if the .NET member raises itXmlException - if the .NET member raises itUnreachableException - if the .NET member raises itFormatException - if the .NET member raises itpublic void Save(ConfigurationSaveMode saveMode, boolean forceSaveAll) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, CultureNotFoundException, ConfigurationErrorsException, TypeLoadException, OutOfMemoryException, ArrayTypeMismatchException, MissingMethodException, TargetInvocationException, ConfigurationException, XmlException, UnreachableException, FormatException
saveMode - the argument of type ConfigurationSaveModeforceSaveAll - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itConfigurationErrorsException - if the .NET member raises itTypeLoadException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itConfigurationException - if the .NET member raises itXmlException - if the .NET member raises itUnreachableException - if the .NET member raises itFormatException - if the .NET member raises itpublic void SaveAs(java.lang.String filename)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
IndexOutOfRangeException,
NotSupportedException,
InvalidOperationException,
ConfigurationErrorsException,
TypeLoadException,
OutOfMemoryException,
ConfigurationException,
XmlException,
FormatException,
UnreachableException
filename - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itConfigurationErrorsException - if the .NET member raises itTypeLoadException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itConfigurationException - if the .NET member raises itXmlException - if the .NET member raises itFormatException - if the .NET member raises itUnreachableException - if the .NET member raises itpublic void SaveAs(java.lang.String filename,
ConfigurationSaveMode saveMode)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
IndexOutOfRangeException,
NotSupportedException,
InvalidOperationException,
ConfigurationErrorsException,
TypeLoadException,
OutOfMemoryException,
ConfigurationException,
XmlException,
FormatException,
UnreachableException
filename - the argument of type java.lang.StringsaveMode - the argument of type ConfigurationSaveModejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itConfigurationErrorsException - if the .NET member raises itTypeLoadException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itConfigurationException - if the .NET member raises itXmlException - if the .NET member raises itFormatException - if the .NET member raises itUnreachableException - if the .NET member raises itpublic void SaveAs(java.lang.String filename,
ConfigurationSaveMode saveMode,
boolean forceSaveAll)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
NotSupportedException,
InvalidOperationException,
ObjectDisposedException,
IndexOutOfRangeException,
ConfigurationErrorsException,
TypeLoadException,
OutOfMemoryException,
ArrayTypeMismatchException,
MissingMethodException,
TargetInvocationException,
ConfigurationException,
XmlException,
UnreachableException,
FormatException
filename - the argument of type java.lang.StringsaveMode - the argument of type ConfigurationSaveModeforceSaveAll - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itConfigurationErrorsException - if the .NET member raises itTypeLoadException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itConfigurationException - if the .NET member raises itXmlException - if the .NET member raises itUnreachableException - if the .NET member raises itFormatException - if the .NET member raises itpublic void setAssemblyStringTransformer(Func_2 AssemblyStringTransformer) throws java.lang.Throwable
AssemblyStringTransformer - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void setNamespaceDeclared(boolean NamespaceDeclared)
throws java.lang.Throwable
NamespaceDeclared - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setTargetFramework(FrameworkName TargetFramework) throws java.lang.Throwable
TargetFramework - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setTypeStringTransformer(Func_2 TypeStringTransformer) throws java.lang.Throwable
TypeStringTransformer - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLR