SqlSmoObject.CheckObjectState Method (Boolean)
SQL Server 2008 R2
Validates the state of the referenced object with the option to specify that an exception is thrown if the object is not yet created.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Parameters
- throwIfNotCreated
- Type: System.Boolean
A Boolean value that specifies whether to throw an exception if the object is not yet created.
If True, the method throws an exception if the object is not yet created. Otherwise, False.
