Struct LockShareMode
The lock share mode
Inherited Members
Namespace:FubarDev.WebDavServer.Locking
Assembly:FubarDev.WebDavServer.dll
Syntax
public struct LockShareMode : IEquatable<LockShareMode>
Fields
| Improve this Doc View SourceExclusive
Gets the default exclusive lock share mode
Declaration
public static readonly LockShareMode Exclusive
Field Value
| Type | Description |
|---|---|
| LockShareMode |
Shared
Gets the default shared lock share mode
Declaration
public static readonly LockShareMode Shared
Field Value
| Type | Description |
|---|---|
| LockShareMode |
Properties
| Improve this Doc View SourceName
Gets the XML name of the lock share mode
Declaration
[NotNull]
public XName Name { get; }
Property Value
| Type | Description |
|---|---|
| XName |
XmlValue
Gets the lockscope element for this lock share mode
Declaration
[NotNull]
public lockscope XmlValue { get; }
Property Value
| Type | Description |
|---|---|
| lockscope |
Methods
| Improve this Doc View SourceEquals(LockShareMode)
Declaration
public bool Equals(LockShareMode other)
Parameters
| Type | Name | Description |
|---|---|---|
| LockShareMode | other |
Returns
| Type | Description |
|---|---|
| Boolean |
Implements
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | obj |
Returns
| Type | Description |
|---|---|
| Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| Int32 |
Overrides
| Improve this Doc View SourceParse(String)
Parses the given lock share mode value and returns the corresponding LockShareMode instance.
Declaration
public static LockShareMode Parse([NotNull] string shareMode)
Parameters
| Type | Name | Description |
|---|---|---|
| String | shareMode | The share mode to parse |
Returns
| Type | Description |
|---|---|
| LockShareMode | The corresponding LockShareMode |
Operators
| Improve this Doc View SourceEquality(LockShareMode, LockShareMode)
Compares two lock share modes for their equality
Declaration
public static bool operator ==(LockShareMode x, LockShareMode y)
Parameters
| Type | Name | Description |
|---|---|---|
| LockShareMode | x | The first lock share mode to compare |
| LockShareMode | y | The second lock share mode to compare |
Returns
| Type | Description |
|---|---|
| Boolean | true when both lock share modes are of equal value |
Inequality(LockShareMode, LockShareMode)
Compares two lock share modes for their inequality
Declaration
public static bool operator !=(LockShareMode x, LockShareMode y)
Parameters
| Type | Name | Description |
|---|---|---|
| LockShareMode | x | The first lock share mode to compare |
| LockShareMode | y | The second lock share mode to compare |
Returns
| Type | Description |
|---|---|
| Boolean | true when both lock share modes are not of equal value |