Class Securable<T>
Generic class that indicates whether or not the given value is secured from the current user.
Inheritance
System.Object
Securable<T>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Relativity.Testing.Framework.Models
Assembly: Relativity.Testing.Framework.dll
Syntax
[Serializable]
public class Securable<T>
Type Parameters
Name | Description |
---|---|
T | The type of the value that may be secured. The type should be nullable. |
Constructors
| Improve this Doc View SourceSecurable()
Initializes a new instance of the Securable<T> class.
Declaration
public Securable()
Securable(T)
Initializes a new instance of the Securable<T> class.
Declaration
public Securable(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value that may be secured. |
Properties
| Improve this Doc View SourceSecured
Gets or sets a value indicating whether whether or not the current user has permission to view the given value.
Declaration
public bool Secured { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Value
Gets or sets the value that may or may not be secured.
Declaration
public T Value { get; set; }
Property Value
Type | Description |
---|---|
T |
Remarks
If the value is secured, Value will be null.
Operators
| Improve this Doc View SourceExplicit(Securable<T> to T)
Declaration
public static explicit operator T(Securable<T> value)
Parameters
Type | Name | Description |
---|---|---|
Securable<T> | value |
Returns
Type | Description |
---|---|
T |
Implicit(T to Securable<T>)
Declaration
public static implicit operator Securable<T>(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value |
Returns
Type | Description |
---|---|
Securable<T> |