Class AdDateTimeExtensions
Extensions to help with AD date time objects
Inheritance
System.Object
AdDateTimeExtensions
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: Dapplo.ActiveDirectory.Extensions
Assembly: Dapplo.ActiveDirectory.dll
Syntax
public static class AdDateTimeExtensions
Methods
| Improve this Doc View SourceToDateTime(IAdsLargeInteger)
Convert an IAdsLargeInteger to a DateTime
Declaration
public static DateTime? ToDateTime(this IAdsLargeInteger largeInteger)
Parameters
Type | Name | Description |
---|---|---|
IAdsLargeInteger | largeInteger | IAdsLargeInteger |
Returns
Type | Description |
---|---|
System.Nullable<System.DateTime> | DateTime? |
ToDateTimeOffset(IAdsLargeInteger)
Convert an IAdsLargeInteger to a DateTimeOffset
Declaration
public static DateTimeOffset? ToDateTimeOffset(this IAdsLargeInteger largeInteger)
Parameters
Type | Name | Description |
---|---|---|
IAdsLargeInteger | largeInteger | IAdsLargeInteger |
Returns
Type | Description |
---|---|
System.Nullable<System.DateTimeOffset> | DateTimeOffset? |
ToLong(IAdsLargeInteger)
Convert an IAdsLargeInteger to a long
Declaration
public static long? ToLong(this IAdsLargeInteger largeInteger)
Parameters
Type | Name | Description |
---|---|---|
IAdsLargeInteger | largeInteger | IAdsLargeInteger |
Returns
Type | Description |
---|---|
System.Nullable<System.Int64> | long? |