IFsrmPropertyBag.AddMessage Method (String)


Adds an error message to the bag.

Namespace:   Microsoft.Storage
Assembly:  srmlib (in srmlib.dll)


void AddMessage(
    string message
void AddMessage(
    String^ message
abstract AddMessage : 
        message:string -> unit
Sub AddMessage (
    message As String


  • message
    Type: System.String

    The error message to add to the bag. The message is limited to 4096 characters (the message is truncated if longer than 4096 characters).


You can add only one message to the bag. The message is written to the error log, if enabled.

If any of the following implementations returns an error code, FSRM automatically adds a message (which does not count against the one-message limit) that includes the error code and associated message string:

  1.  DoesPropertyValueApply 

  2. GetPropertyValueToApply 

  3. LoadProperties

  4. SaveProperties

See Also

IFsrmPropertyBag Interface
Microsoft.Storage Namespace

Return to top