How do you define the lease of the object in .net?



How do you define the lease of the object in .net?..

Answer / Harikrishan Prajapati

To define the lease of an object in .NET, you can use the System.Runtime.Leases namespace. LeaseTime, RenewOnCallTime, and CancellationPending properties are used to configure the lease settings for a specific object instance. These settings determine how long the object will be kept alive before being garbage collected.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

What is the purpose of IClonable interface in .NET?

1 Answers   Sans Pareil IT Services,


Differences between namespace, class, assembly?

1 Answers  


Name for built-in permission sets in .Net

1 Answers  


What is value type and refernce type in .net?

1 Answers  


Hi, Requirement is: try { \\SQL Query } catch(Exception i) { print a } catch(SQLQueryException e) { \\SQL Query } Got Exception in "try" block. Which "catch" throws exception and Why??? Please provide the answer in detail.. Thanks for the help!!!

3 Answers   3i Infotech,


Which among the following two is best and why? Abstract Class and Interface. What is the major difference in between those two except the discrete methods and methods with function definition.

4 Answers   247Customer,


What is a .net class?

1 Answers  


Is .net core stable?

1 Answers  


where are connection strings stored?

1 Answers   Manhattan,


What is the difference between a namespace and assembly name in .net?

1 Answers  


Explain me what is .net web service?

1 Answers  


How will you register com+ services?

1 Answers  


Categories