Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Add an error for invalid property value with given type.
Namespace:  Microsoft.VisualStudio.Modeling.DslDefinition
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.12.0.dll)
Syntax
'Declaration
Public Shared Sub InvalidPropertyValue ( _
    serializationContext As SerializationContext, _
    reader As XmlReader, _
    propertyName As String, _
    propertyType As Type, _
    value As String _
)
public static void InvalidPropertyValue(
    SerializationContext serializationContext,
    XmlReader reader,
    string propertyName,
    Type propertyType,
    string value
)
public:
static void InvalidPropertyValue(
    SerializationContext^ serializationContext, 
    XmlReader^ reader, 
    String^ propertyName, 
    Type^ propertyType, 
    String^ value
)
static member InvalidPropertyValue : 
        serializationContext:SerializationContext * 
        reader:XmlReader * 
        propertyName:string * 
        propertyType:Type * 
        value:string -> unit
public static function InvalidPropertyValue(
    serializationContext : SerializationContext, 
    reader : XmlReader, 
    propertyName : String, 
    propertyType : Type, 
    value : String
)
Parameters
- serializationContext 
 Type: Microsoft.VisualStudio.Modeling.SerializationContext- SerializationContext to add the error message to. 
- reader 
 Type: System.Xml.XmlReader- The reader pointing to where the message is raised. 
- propertyName 
 Type: System.String- Name of the property. 
- propertyType 
 Type: System.Type- Type of the property. 
- value 
 Type: System.String- Invalid value that causes this error. 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DslDefinitionModelSerializationBehaviorSerializationMessages Class