21 references to TryGetPropertyValue
Aspire.Hosting (2)
Devcontainers\DevcontainerSettingsWriter.cs (2)
72if (!settings.TryGetPropertyValue(PortAttributesFieldName, out var portsAttributesNode)) 111if (!portsAttributes.TryGetPropertyValue(port, out var portAttributeNode))
Aspire.Hosting.Azure.Tests (1)
AzureManifestUtils.cs (1)
32if (!manifestNode.AsObject().TryGetPropertyValue("path", out var pathNode))
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (3)
UserJwtsTests.cs (3)
303Assert.True(secretsJson.TryGetPropertyValue("Foo", out var fooField)); 524Assert.True(secretsJson.TryGetPropertyValue("Foo", out var fooField)); 552Assert.True(secretsJson.TryGetPropertyValue("Foo", out var fooField));
Microsoft.AspNetCore.JsonPatch.SystemTextJson (3)
Internal\JsonObjectAdapter.cs (3)
37if (!obj.TryGetPropertyValue(segment, out var valueAsToken)) 98if (!obj.TryGetPropertyValue(segment, out var currentValue)) 129if (!obj.TryGetPropertyValue(segment, out var nextTargetToken))
Microsoft.Extensions.AI.Abstractions (9)
Utilities\AIJsonUtilities.Schema.Create.cs (1)
259if (parameterName is not null && objSchema.TryGetPropertyValue(RefPropertyName, out JsonNode? paramName))
Utilities\AIJsonUtilities.Schema.Transform.cs (8)
68if (schemaObj.TryGetPropertyValue(PropertiesPropertyName, out JsonNode? props) && props is JsonObject propsObj) 82if (schemaObj.TryGetPropertyValue(ItemsPropertyName, out JsonNode? itemsSchema)) 89if (schemaObj.TryGetPropertyValue(AdditionalPropertiesPropertyName, out JsonNode? additionalProps) && 97if (schemaObj.TryGetPropertyValue(NotPropertyName, out JsonNode? notSchema)) 108if (schemaObj.TryGetPropertyValue(combinatorKeyword, out JsonNode? combinatorSchema) && combinatorSchema is JsonArray combinatorArray) 145schemaObj.TryGetPropertyValue(TypePropertyName, out JsonNode? typeSchema) && 178schemaObj.TryGetPropertyValue(DefaultPropertyName, out JsonNode? defaultSchema)) 180string? description = schemaObj.TryGetPropertyValue(DescriptionPropertyName, out JsonNode? descriptionSchema) ? descriptionSchema?.GetValue<string>() : null;
Microsoft.Extensions.AI.Abstractions.Tests (2)
Utilities\AIJsonUtilitiesTests.cs (2)
820if (schemaObj.TryGetPropertyValue("properties", out JsonNode? props)) 827if (schemaObj.TryGetPropertyValue("type", out JsonNode? type) && type is JsonArray typeArray)
System.Text.Json (1)
System\Text\Json\Nodes\JsonObject.cs (1)
206if (TryGetPropertyValue(propertyName, out JsonNode? value))