共用方式為


ValidationMessage.Context Property

Gets the context information for a validation message.

Namespace:  Microsoft.VisualStudio.Modeling.Validation
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'宣告
Public ReadOnly Property Context As ValidationContext
    Get
public ValidationContext Context { get; }
public:
property ValidationContext^ Context {
    ValidationContext^ get ();
}
member Context : ValidationContext
function get Context () : ValidationContext

Property Value

Type: Microsoft.VisualStudio.Modeling.Validation.ValidationContext
A ValidationContext object that has information about the context of the ValidationMessage.

Remarks

The ValidationContext object is passed into each validation method that is called.

.NET Framework Security

See Also

Reference

ValidationMessage Class

Microsoft.VisualStudio.Modeling.Validation Namespace