Class SyndicationResourceSaveSettings
Specifies a set of features to support on a ISyndicationResource object persisted by the Save(Stream, SyndicationResourceSaveSettings) method.
Inheritance
Implements
Inherited Members
Namespace: Argotic.Common
Assembly: Argotic.Common.dll
Syntax
[Serializable]
public sealed class SyndicationResourceSaveSettings : IComparable
Constructors
| Improve this Doc View SourceSyndicationResourceSaveSettings()
Initializes a new instance of the SyndicationResourceSaveSettings class.
Declaration
public SyndicationResourceSaveSettings()
Properties
| Improve this Doc View SourceAutoDetectExtensions
Gets or sets a value indicating if auto-detection of supported syndication extensions is enabled.
Declaration
public bool AutoDetectExtensions { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the syndication extensions supported by the save operation are automatically determined based on the syndication extensions added to the syndication resource and its child entities; otherwise false. The default value is true. |
Remarks
Automatic detection of supported syndication extensions will not remove any syndication extensions already added to the SupportedExtensions collection prior to the save operation execution.
CharacterEncoding
Gets or sets the character encoding to use when persisting a syndication resource.
Declaration
public Encoding CharacterEncoding { get; set; }
Property Value
Type | Description |
---|---|
System.Text.Encoding | A System.Text.Encoding object that indicates the character encoding to use when persisting a syndication resource. The default value is System.Text.Encoding.UTF8. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
MinimizeOutputSize
Gets or sets a value indicating if syndication resource persist operations should attempt to minimize the physical size of the resulting output.
Declaration
public bool MinimizeOutputSize { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if output size should be as small as possible; otherwise false. The default value is false. |
SupportedExtensions
Gets the syndication extensions that extend the syndication resource.
Declaration
public Collection<Type> SupportedExtensions { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.Collection<System.Type> | A System.Collections.ObjectModel.Collection<T> collection of System.Type objects that represent syndication extension instances used during the save operation. The default value is an empty collection. |
Remarks
During a save operation, each of these syndication extension types is instantiated and used to write the prefixed XML namespace declarations on the root syndication resource entity.
Methods
| Improve this Doc View SourceCompareTo(Object)
Compares the current instance with another object of the same type.
Declaration
public int CompareTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | An object to compare with this instance. |
Returns
Type | Description |
---|---|
System.Int32 | A 32-bit signed integer that indicates the relative order of the objects being compared. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | The |
Equals(Object)
Determines whether the specified System.Object is equal to the current instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The System.Object to compare with the current instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified System.Object is equal to the current instance; otherwise, false. |
Overrides
GetHashCode()
Returns a hash code for the current instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A 32-bit signed integer hash code. |
Overrides
ToString()
Returns a System.String that represents the current SyndicationResourceSaveSettings.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current SyndicationResourceSaveSettings. |
Overrides
Remarks
This method returns a human-readable string for the current instance.
Operators
| Improve this Doc View SourceEquality(SyndicationResourceSaveSettings, SyndicationResourceSaveSettings)
Determines if operands are equal.
Declaration
public static bool operator ==(SyndicationResourceSaveSettings first, SyndicationResourceSaveSettings second)
Parameters
Type | Name | Description |
---|---|---|
SyndicationResourceSaveSettings | first | Operand to be compared. |
SyndicationResourceSaveSettings | second | Operand to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if the values of its operands are equal, otherwise; false. |
GreaterThan(SyndicationResourceSaveSettings, SyndicationResourceSaveSettings)
Determines if first operand is greater than second operand.
Declaration
public static bool operator>(SyndicationResourceSaveSettings first, SyndicationResourceSaveSettings second)
Parameters
Type | Name | Description |
---|---|---|
SyndicationResourceSaveSettings | first | Operand to be compared. |
SyndicationResourceSaveSettings | second | Operand to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if the first operand is greater than the second, otherwise; false. |
Inequality(SyndicationResourceSaveSettings, SyndicationResourceSaveSettings)
Determines if operands are not equal.
Declaration
public static bool operator !=(SyndicationResourceSaveSettings first, SyndicationResourceSaveSettings second)
Parameters
Type | Name | Description |
---|---|---|
SyndicationResourceSaveSettings | first | Operand to be compared. |
SyndicationResourceSaveSettings | second | Operand to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | false if its operands are equal, otherwise; true. |
LessThan(SyndicationResourceSaveSettings, SyndicationResourceSaveSettings)
Determines if first operand is less than second operand.
Declaration
public static bool operator <(SyndicationResourceSaveSettings first, SyndicationResourceSaveSettings second)
Parameters
Type | Name | Description |
---|---|---|
SyndicationResourceSaveSettings | first | Operand to be compared. |
SyndicationResourceSaveSettings | second | Operand to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if the first operand is less than the second, otherwise; false. |