SenderHelpers.IsPropertySettingValid Method (IMessageBase, IMessageSender, Object, MessageValidationException)
Performs inline validation on objects within a message.
Namespace: Microsoft.ConfigurationManagement.Messaging.Framework
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
public static bool IsPropertySettingValid(
IMessageBase message,
IMessageSender sender,
object graph,
out MessageValidationException validationException
)
public:
static bool IsPropertySettingValid(
IMessageBase^ message,
IMessageSender^ sender,
Object^ graph,
[OutAttribute] MessageValidationException^% validationException
)
Public Shared Function IsPropertySettingValid (
message As IMessageBase,
sender As IMessageSender,
graph As Object,
<OutAttribute> ByRef validationException As MessageValidationException
) As Boolean
Parameters
message
Type: Microsoft.ConfigurationManagement.Messaging.Framework.IMessageBaseThe message to validate.
sender
Type: Microsoft.ConfigurationManagement.Messaging.Framework.IMessageSenderThe message sender.
graph
Type: System.ObjectThe object to verify.
validationException
Type: Microsoft.ConfigurationManagement.Messaging.Framework.MessageValidationExceptionValidation exception for the message. If the return value is false, the behavior for validationException is undefined.
Return Value
Type: System.Boolean
True if the property settings are valid, false if not. The validationException should generally be re-thrown.
See Also
SenderHelpers Class
Microsoft.ConfigurationManagement.Messaging.Framework Namespace
Return to top