e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
125 lines
2.8 KiB
C#
125 lines
2.8 KiB
C#
//------------------------------------------------------------------------------
|
|
// <copyright file="ProfilePropertyMetadata.cs" company="Microsoft">
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace System.Web.ApplicationServices
|
|
{
|
|
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
[DataContract]
|
|
public class ProfilePropertyMetadata : IExtensibleDataObject
|
|
{
|
|
private ExtensionDataObject _extensionDataObject;
|
|
private String _propertyName;
|
|
|
|
public ExtensionDataObject ExtensionData {
|
|
get {
|
|
return _extensionDataObject;
|
|
}
|
|
set {
|
|
_extensionDataObject = value;
|
|
}
|
|
}
|
|
|
|
[DataMember]
|
|
public String PropertyName
|
|
{
|
|
get
|
|
{
|
|
return _propertyName;
|
|
}
|
|
set
|
|
{
|
|
_propertyName = value;
|
|
}
|
|
}
|
|
|
|
private String _typeName;
|
|
[DataMember]
|
|
public String TypeName
|
|
{
|
|
get
|
|
{
|
|
return _typeName;
|
|
}
|
|
set
|
|
{
|
|
_typeName = value;
|
|
}
|
|
}
|
|
|
|
private bool _allowAnonymousAccess;
|
|
[DataMember]
|
|
public bool AllowAnonymousAccess
|
|
{
|
|
get
|
|
{
|
|
return _allowAnonymousAccess;
|
|
}
|
|
set
|
|
{
|
|
_allowAnonymousAccess = value;
|
|
}
|
|
}
|
|
|
|
private bool _isReadOnly;
|
|
[DataMember]
|
|
public bool IsReadOnly
|
|
{
|
|
get
|
|
{
|
|
return _isReadOnly;
|
|
}
|
|
set
|
|
{
|
|
_isReadOnly = value;
|
|
}
|
|
}
|
|
/* Uncommnet once accessmode is available
|
|
public ProfileServiceAccess _accessMode;
|
|
[DataMember]
|
|
public ProfileServiceAccess AccessMode
|
|
{
|
|
get
|
|
{
|
|
return _accessMode;
|
|
}
|
|
set
|
|
{
|
|
_accessMode = value;
|
|
}
|
|
}
|
|
*/
|
|
private int _serializeAs;
|
|
[DataMember]
|
|
public int SerializeAs
|
|
{
|
|
get
|
|
{
|
|
return _serializeAs;
|
|
}
|
|
set
|
|
{
|
|
_serializeAs = value;
|
|
}
|
|
}
|
|
|
|
private string _defaultValue;
|
|
[DataMember]
|
|
public string DefaultValue
|
|
{
|
|
get
|
|
{
|
|
return _defaultValue;
|
|
}
|
|
set
|
|
{
|
|
_defaultValue = value;
|
|
}
|
|
}
|
|
}
|
|
}
|