Edit

IdentityRefOrJValueConverter Class

Definition

Converter for property which is either an IdentityRef or a primitive type (JValue) In support of converting contracts were accepting primitive type representing identity and moving to IdentityRefNow

public class IdentityRefOrJValueConverter : Microsoft.VisualStudio.Services.WebApi.VssSecureJsonConverter
type IdentityRefOrJValueConverter = class
    inherit VssSecureJsonConverter
Public Class IdentityRefOrJValueConverter
Inherits VssSecureJsonConverter
Inheritance
Microsoft.VisualStudio.Services.WebApi.VssSecureJsonConverter
IdentityRefOrJValueConverter

Constructors

IdentityRefOrJValueConverter()

Properties

CanWrite

For writing, we don't need anything special, so just do the default serialization

Methods

CanConvert(Type)
ReadJson(JsonReader, Type, Object, JsonSerializer)
WriteJson(JsonWriter, Object, JsonSerializer)

Applies to