Click or drag to resize
StringSenderMessage Class
An implementation of ISenderMessage for use when a string is the payload of the message.
Inheritance Hierarchy
SystemObject
  Rock.MessagingStringSenderMessage

Namespace: Rock.Messaging
Assembly: Rock.Messaging (in Rock.Messaging.dll) Version: 0.9.3
Syntax
public class StringSenderMessage : ISenderMessage

The StringSenderMessage type exposes the following members.

Constructors
  NameDescription
Public methodStringSenderMessage(String, Encoding)
Initializes a new instance of the StringSenderMessage class using Text for its format. The value of the BinaryValue property will be the result of a call to the GetBytes(String) method of encoding. If encoding is null, UTF8 is used.
Public methodStringSenderMessage(String, MessageFormat, Encoding)
Initializes a new instance of the StringSenderMessage class. If the value of messageFormat is Binary, then the value of the BinaryValue property will be the result of a call to FromBase64String(String). Otherwise, the value of the BinaryValue property will be the result of a call to the GetBytes(String) method of encoding. If encoding is null, UTF8 is used.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyBinaryValue
Gets the binary value of the message.
Public propertyHeaders
Gets the headers for this message.
Public propertyMessageFormat
Gets the message format of the message.
Public propertyStringValue
Gets the string value of the message.
Top
See Also