예제 #1
0
 protected DBDataPermission(DBDataPermissionAttribute permissionAttribute) { // V1.0.5000, for CreatePermission
     if (null == permissionAttribute) {
         throw ADP.ArgumentNull("permissionAttribute");
     }
     _isUnrestricted = permissionAttribute.Unrestricted;
     if (!_isUnrestricted) {
         _allowBlankPassword = permissionAttribute.AllowBlankPassword;
         if (permissionAttribute.ShouldSerializeConnectionString() || permissionAttribute.ShouldSerializeKeyRestrictions()) { // MDAC 86773
             Add(permissionAttribute.ConnectionString, permissionAttribute.KeyRestrictions, permissionAttribute.KeyRestrictionBehavior);
         }
     }
 }
 /// <include file='doc\DBDataPermission.uex' path='docs/doc[@for="DBDataPermission.DBDataPermission4"]/*' />
 protected DBDataPermission(DBDataPermissionAttribute permissionAttribute)   // for CreatePermission
 {
     if (null == permissionAttribute)
     {
         throw ADP.ArgumentNull("permissionAttribute");
     }
     _isUnrestricted = permissionAttribute.Unrestricted;
     if (!_isUnrestricted)
     {
         _allowBlankPassword = permissionAttribute.AllowBlankPassword;
         if (permissionAttribute.ShouldSerializeConnectionString() || permissionAttribute.ShouldSerializeKeyRestrictions())   // MDAC 86773
         {
             Add(permissionAttribute.ConnectionString, permissionAttribute.KeyRestrictions, permissionAttribute.KeyRestrictionBehavior);
         }
     }
 }
 protected DBDataPermission(DBDataPermissionAttribute permissionAttribute)
 {
     this._keyvaluetree = NameValuePermission.Default;
     if (permissionAttribute == null)
     {
         throw ADP.ArgumentNull("permissionAttribute");
     }
     this._isUnrestricted = permissionAttribute.Unrestricted;
     if (!this._isUnrestricted)
     {
         this._allowBlankPassword = permissionAttribute.AllowBlankPassword;
         if (permissionAttribute.ShouldSerializeConnectionString() || permissionAttribute.ShouldSerializeKeyRestrictions())
         {
             this.Add(permissionAttribute.ConnectionString, permissionAttribute.KeyRestrictions, permissionAttribute.KeyRestrictionBehavior);
         }
     }
 }
 protected DBDataPermission(DBDataPermissionAttribute permissionAttribute)
 {
     this._keyvaluetree = NameValuePermission.Default;
     if (permissionAttribute == null)
     {
         throw ADP.ArgumentNull("permissionAttribute");
     }
     this._isUnrestricted = permissionAttribute.Unrestricted;
     if (!this._isUnrestricted)
     {
         this._allowBlankPassword = permissionAttribute.AllowBlankPassword;
         if (permissionAttribute.ShouldSerializeConnectionString() || permissionAttribute.ShouldSerializeKeyRestrictions())
         {
             this.Add(permissionAttribute.ConnectionString, permissionAttribute.KeyRestrictions, permissionAttribute.KeyRestrictionBehavior);
         }
     }
 }