DelegatingStreamInitializeLifetimeService Method |
Obtains a lifetime service object to control the lifetime policy for this instance.
Namespace:
MongoDB.Driver.GridFS
Assembly:
MongoDB.Driver.GridFS (in MongoDB.Driver.GridFS.dll) Version: 2.7.3+Branch.v2.7.x.Sha.2f1f2be13a23b8520cb9c2ee8439c022f9a03efe
Syntax public override Object InitializeLifetimeService()
Public Overrides Function InitializeLifetimeService As Object
abstract InitializeLifetimeService : unit -> Object
override InitializeLifetimeService : unit -> Object
Return Value
Type:
ObjectAn object of type
ILease used to control the lifetime policy for this instance. This is the current lifetime service object for this instance if one exists; otherwise, a new lifetime service object initialized to the value of the
LeaseManagerPollTime property.
Exceptions Exception | Condition |
---|
SecurityException | The immediate caller does not have infrastructure permission. |
See Also