ProfilePropertyMetadata.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / xsp / System / Web / Extensions / ApplicationServices / ProfilePropertyMetadata.cs / 1 / ProfilePropertyMetadata.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Web.ApplicationServices 
{ 
    using System;
    using System.Runtime.Serialization; 
    using System.Security.Permissions;

    [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
    [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] 
    [DataContract]
    public class ProfilePropertyMetadata 
    { 
        private String _propertyName;
        [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;
            } 
        }
    } 
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Web.ApplicationServices 
{ 
    using System;
    using System.Runtime.Serialization; 
    using System.Security.Permissions;

    [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
    [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] 
    [DataContract]
    public class ProfilePropertyMetadata 
    { 
        private String _propertyName;
        [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;
            } 
        }
    } 
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK