[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Used to perform inline validation on objects within a message

Namespace:  Microsoft.ConfigurationManagement.Messaging.Framework
Assembly:  Microsoft.ConfigurationManagement.Messaging(in Microsoft.ConfigurationManagement.Messaging.dll)

Syntax

                 
  C#     Visual Basic     Visual C++  
public 
static 
bool 
IsPropertySettingValid(
	
IMessageBase

message,
	
Object 
graph,
	
out 

MessageValidationException 
validationException
)
Public 
Shared 
Function 
IsPropertySettingValid ( _
	
message 
As 

IMessageBase, _
	
graph 
As 
Object, _
		<
OutAttribute> 
ByRef 
validationException 
As 

MessageValidationException _
) 
As 
Boolean
public:
static 
bool 
IsPropertySettingValid(
	

IMessageBase^ 
message, 
	
Object^ 
graph, 
		[
OutAttribute] 

MessageValidationException^% 
validationException
)

Parameters

message
IMessageBase
Message to validate
graph
Object
Object to check
validationException
MessageValidationException %
Validation exception for the message. If the return value is false, validationException's behavior is undefined

Return Value

true if property settings are valid, false if not. The validationException should generally be re-thrown

See Also