You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
update name from tryget to getifexists (Azure#22938)
* update name from tryget to getifexists
* update to return Response<T> for GetIfExists and CheckIfExists
* update api
* update ManageGroup to adop if exists changes
* update subscription to adopt if exists changes
* update features to use new if exists
* update generic resource to use new if exists
* update provider to use new if exists
* update resource group to use new if exists
* final changes
* update api after changes
* update snippets to not use var
update typo in readme
* one more typo
* update list references
Additional documentation for the `Azure.Identity.DefaultAzureCredential` class can be found in [this document](https://docs.microsoft.com/dotnet/api/azure.identity.defaultazurecredential).
### `tryGet` and `CheckIfExistss` convenience methods
152
-
If you are not sure if a resource you want to get exists, or you just want to check if it exists, you can use `tryGet()` or `CheckIfExistss()` methods, which can be invoque from any [Resource]Container class.
152
+
If you are not sure if a resource you want to get exists, or you just want to check if it exists, you can use `GetIfExists()` or `CheckIfExistss()` methods, which can be invoque from any [Resource]Container class.
153
153
154
-
`tryGet()` and `tryGetAsync()` are going to return a null object if the specified resource name or id does not exists. On the other hand, `CheckIfExistss()` and `CheckIfExistssAsync()` is going to return a boolean, depending if the specified resource exists.
154
+
`GetIfExists()` and `GetIfExistsAsync()` are going to return a null object if the specified resource name or id does not exists. On the other hand, `CheckIfExistss()` and `CheckIfExistssAsync()` is going to return a boolean, depending if the specified resource exists.
155
155
156
156
You can find an example for these methods [below](#check-if-resource-group-exists).
157
157
@@ -160,7 +160,7 @@ You can find an example for these methods [below](#check-if-resource-group-exist
0 commit comments