Поделиться через


IFsrmPropertyBag2.AddMessage Method (String)

 

Adds an error message to the property bag.

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

Syntax

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

Parameters

  • message
    Type: System.String

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

Implements

IFsrmPropertyBag.AddMessage(String)

Remarks

You can add only one message to the property 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

IFsrmPropertyBag2 Interface
Microsoft.Storage Namespace

Return to top