Click or drag to resize

EncryptSettingAttribute Class

Represents an attribute that determines if a property or field in a class derived from CategorizedSettingsBase or AppSettingsBase should be encrypted when it is serialized to the configuration file.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    GSF.ConfigurationEncryptSettingAttribute

Namespace: GSF.Configuration
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
[AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field)]
public sealed class EncryptSettingAttribute : Attribute
View Source

The EncryptSettingAttribute type exposes the following members.

Constructors
 NameDescription
Public methodEncryptSettingAttribute Creates a new EncryptSettingAttribute; defaults to Encrypt = true.
Public methodEncryptSettingAttribute(Boolean) Creates a new EncryptSettingAttribute with the specified encrypt value.
Top
Properties
 NameDescription
Public propertyEncrypt Gets or sets flag that determines if the property or field this EncryptSettingAttribute modifies should be encrypted when serialized to the configuration file.
Public propertyPrivateKey Gets or sets optional encryption key that will be used on a setting for added security.
Public propertyTypeIdWhen implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute)
Top
Methods
 NameDescription
Public methodEqualsReturns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute)
Public methodGetHashCodeReturns the hash code for this instance.
(Inherited from Attribute)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsDefaultAttributeWhen overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute)
Public methodMatchWhen overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also