233 references to Success
Aspire.Dashboard (2)
ConsoleLogs\UrlParser.cs (1)
25while (urlMatch.Success)
src\Shared\ConsoleLogs\TimestampParser.cs (1)
17if (match.Success)
Aspire.EndToEnd.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
195if (m.Success)
Aspire.Hosting (2)
Dashboard\DashboardService.cs (1)
48Match { Success: true } match => match.Groups["name"].Value,
src\Shared\ConsoleLogs\TimestampParser.cs (1)
17if (match.Success)
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (2)
293Assert.True(match1.Success); 295Assert.True(match2.Success);
Aspire.Microsoft.Data.SqlClient (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (1)
199if (namedInstancePipeMatch.Success)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (1)
199if (namedInstancePipeMatch.Success)
Aspire.Workload.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
195if (m.Success)
BuildBoss (1)
CompilerNuGetCheckerUtil.cs (1)
107if (!match.Success)
dotnet-dev-certs (2)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
807if (!match.Success)
dotnet-svcutil-lib (4)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (2)
565if (m.Success) 575if (m.Success)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SourceInfo.cs (2)
67if (match.Success) 190if (match.Success)
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (2)
322Assert.True(processIdMatch.Success, $"'{processIdPattern}' did not match '{aspnetcorev2Log}'"); 357Assert.True(prefixMatch.Success, $"'{prefixPattern}' did not match '{log}'");
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (2)
322Assert.True(processIdMatch.Success, $"'{processIdPattern}' did not match '{aspnetcorev2Log}'"); 357Assert.True(prefixMatch.Success, $"'{prefixPattern}' did not match '{log}'");
illink (2)
installer.tasks (1)
StaticFileRegeneration\TpnSectionHeader.cs (1)
158(numberListMatch = NumberListPrefix.Match(lines[i])).Success)
InteropTests (1)
Helpers\WebsiteProcess.cs (1)
70if (m.Success)
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\Infrastructure\EmbeddedLanguageCommentDetector.cs (1)
41if (!match.Success)
Microsoft.AspNetCore.App.Analyzers.Test (1)
RouteEmbeddedLanguage\Infrastructure\MarkupTestFile.cs (1)
77if (namedSpanStartMatch.Success)
Microsoft.AspNetCore.Components.Endpoints.Tests (15)
EndpointHtmlRendererTest.cs (15)
63Assert.True(match.Success); 86Assert.True(match.Success); 129Assert.True(match.Success); 166Assert.True(match.Success); 201Assert.True(match.Success); 250Assert.True(match.Success); 309Assert.True(match.Success); 341Assert.True(match.Success); 406Assert.True(firstMatch.Success); 417Assert.True(secondMatch.Success); 460Assert.True(match.Success); 499Assert.True(match.Success); 538Assert.True(match.Success); 589Assert.True(match.Success); 1171Assert.True(match.Success);
Microsoft.AspNetCore.Components.Server.Tests (1)
Circuits\ComponentHubTest.cs (1)
34mockClientProxy.Verify(m => m.SendCoreAsync("JS.Error", It.Is<object[]>(s => Regex.Match((string)s[0], errorMessage).Success), It.IsAny<CancellationToken>()), Times.Once());
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
DebugProxyLauncher.cs (2)
215if (matchFirefox.Success && isFirefox) 224if (match.Success)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
807if (!match.Success)
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (2)
65if (!match.Success) 180if (!match.Success)
Microsoft.AspNetCore.Grpc.Swagger (2)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (2)
65if (!match.Success) 180if (!match.Success)
Microsoft.AspNetCore.Identity.FunctionalTests (2)
MapIdentityApiTests.cs (2)
1362Assert.True(confirmationMatch.Success); 1374Assert.True(confirmationMatch.Success);
Microsoft.AspNetCore.Rewrite (3)
RedirectRule.cs (1)
43if (initMatchResults.Success)
RewriteRule.cs (1)
40if (initMatchResults.Success)
UrlMatches\RegexMatch.cs (1)
21return new MatchResults(success: res.Success != Negate, new BackReferenceCollection(res.Groups));
Microsoft.AspNetCore.Rewrite.Tests (6)
IISUrlRewrite\InputParserTests.cs (2)
180return new MatchResults(match.Success, new BackReferenceCollection(match.Groups)); 186return new MatchResults(match.Success, new BackReferenceCollection(match.Groups));
IISUrlRewrite\ServerVariableTests.cs (2)
162return new MatchResults(match.Success, new BackReferenceCollection(match.Groups)); 168return new MatchResults(match.Success, new BackReferenceCollection(match.Groups));
PatternSegments\ConditionMatchSegmentTests.cs (1)
32return new MatchResults(match.Success, new BackReferenceCollection(match.Groups));
PatternSegments\RuleMatchSegmentTests.cs (1)
31return new MatchResults(match.Success, new BackReferenceCollection(match.Groups));
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\SelfHostDeployer.cs (1)
156if (m.Success)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
IISExpressDeployer.cs (1)
212if (m.Success)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
807if (!match.Success)
Microsoft.AspNetCore.SpaServices.Extensions (1)
Util\EventedStreamReader.cs (1)
57if (match.Success)
Microsoft.Build (18)
BuildCheck\Infrastructure\EditorConfig\EditorConfigGlobsMatcher.cs (1)
46if (!match.Success)
CanonicalError.cs (8)
288if (!match.Success) 296if (!match.Success) 358if (match.Success) 377if (match.Success) 384if (match.Success) 392if (match.Success) 400if (match.Success) 409if (match.Success)
Construction\Solution\SolutionFile.cs (4)
1056ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(match.Success, "SubCategoryForSolutionParsingErrors", 1074ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(match.Success, "SubCategoryForSolutionParsingErrors", 1506ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(match.Success, "SubCategoryForSolutionParsingErrors", 1606ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(match.Success, "SubCategoryForSolutionParsingErrors",
DebugUtils.cs (1)
74if (!match.Success)
Evaluation\Expander.cs (1)
1077ErrorUtilities.VerifyThrow(itemMetadataMatch.Success, "Need a valid item metadata.");
Evaluation\IntrinsicFunctions.cs (1)
284if (m.Success && m.Groups.Count >= 1 && valueName.Equals("InstallRoot", StringComparison.OrdinalIgnoreCase))
FileMatcher.cs (1)
1866isMatch = match.Success;
ProjectWriter.cs (1)
154ErrorUtilities.VerifyThrow(itemVectorTransform.Success,
Microsoft.Build.Engine.OM.UnitTests (1)
DebugUtils.cs (1)
74if (!match.Success)
Microsoft.Build.Engine.UnitTests (13)
FileUtilitiesRegex_Tests.cs (13)
200match.Success.ShouldBeTrue(); 204match.Success.ShouldBeTrue(); 266match.Success.ShouldBeTrue(); 270match.Success.ShouldBeTrue(); 321match.Success.ShouldBeTrue(); 325match.Success.ShouldBeTrue(); 386match.Success.ShouldBeTrue(); 390match.Success.ShouldBeTrue(); 451match.Success.ShouldBeFalse(); 454match.Success.ShouldBeFalse(); 514match.Success.ShouldBeFalse(); 517match.Success.ShouldBeFalse(); 535StartsWithUncPattern.Match(string.Empty).Success.ShouldBeFalse();
Microsoft.Build.Tasks.CodeAnalysis (7)
CanonicalError.cs (7)
302if (!match.Success) 333if (match.Success) 352if (match.Success) 359if (match.Success) 367if (match.Success) 375if (match.Success) 384if (match.Success)
Microsoft.Build.Tasks.Core (17)
AssemblyDependency\AssemblyFoldersExResolver.cs (1)
127if (match.Success)
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (1)
103if (match.Success)
BootstrapperUtil\BuildMessage.cs (1)
29if (match.Success)
CanonicalError.cs (8)
288if (!match.Success) 296if (!match.Success) 358if (match.Success) 377if (match.Success) 384if (match.Success) 392if (match.Success) 400if (match.Success) 409if (match.Success)
DebugUtils.cs (1)
74if (!match.Success)
FileMatcher.cs (1)
1866isMatch = match.Success;
FindInvalidProjectReferences.cs (1)
121if (match.Success)
NativeMethods.cs (1)
1391if (match.Success)
ResolveSDKReference.cs (1)
583if (match.Success)
XamlTaskFactory\CommandLineGenerator.cs (1)
418if (match.Success)
Microsoft.Build.Utilities.Core (10)
CanonicalError.cs (8)
288if (!match.Success) 296if (!match.Success) 358if (match.Success) 377if (match.Success) 384if (match.Success) 392if (match.Success) 400if (match.Success) 409if (match.Success)
DebugUtils.cs (1)
74if (!match.Success)
FileMatcher.cs (1)
1866isMatch = match.Success;
Microsoft.CodeAnalysis (2)
CommandLine\AnalyzerConfig.SectionNameMatching.cs (1)
45if (!match.Success)
SourceGeneration\AdditionalSourcesCollection.cs (1)
70if (s_invalidSegmentPattern.Match(hintName) is { Success: true } match)
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
308if (!match.Success)
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Synthesized\GeneratedNameParser.cs (1)
217if (s_fileTypeOrdinalPattern.Match(generatedName) is Match { Success: true, Groups: var groups, Index: var index, Length: var length })
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
4802Assert.True(match.Success, $"Expected pattern:{Environment.NewLine}{pattern}{Environment.NewLine}Actual:{Environment.NewLine}{output}");
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenReadOnlySpanConstructionTest.cs (1)
2573Assert.True(m.Success, $"Expected regex to match in {il}");
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider (1)
src\Compilers\CSharp\Portable\Symbols\Synthesized\GeneratedNameParser.cs (1)
217if (s_fileTypeOrdinalPattern.Match(generatedName) is Match { Success: true, Groups: var groups, Index: var index, Length: var length })
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelAPITests.cs (2)
4029for (var match = System.Text.RegularExpressions.Regex.Match(source, " => x"); match.Success; match = match.NextMatch()) 4057for (var match = System.Text.RegularExpressions.Regex.Match(source, " => x"); match.Success; match = match.NextMatch())
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\DataProvider\SettingsProviderBase.cs (1)
144if (match.Success && match.Groups["key"].Value is string isolatedKey &&
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Semantics\SpeculationAnalyzerTestsBase.cs (1)
32Assert.True(initialMatch.Success);
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
src\Compilers\CSharp\Portable\Symbols\Synthesized\GeneratedNameParser.cs (1)
217if (s_fileTypeOrdinalPattern.Match(generatedName) is Match { Success: true, Groups: var groups, Index: var index, Length: var length })
Microsoft.CodeAnalysis.Features (2)
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
371if (match.Success)
EmbeddedLanguages\EmbeddedLanguageCommentDetector.cs (1)
40if (!match.Success)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Configuration\DidChangeConfigurationNotificationHandlerTest.cs (1)
336Assert.True(match.Success);
Microsoft.CodeAnalysis.Test.Utilities (4)
Diagnostics\DiagnosticDescription.cs (2)
476var fmtSpecifier = match.Groups.Count > 1 && match.Groups[1].Success ? match.Groups[1].Value : ""; 523if (Regex.Match(message, @"{\d+}").Success)
Diagnostics\DiagnosticsHelper.cs (1)
21Assert.True(match.Success, "Could not find a match for \"" + pattern + "\" in:" + Environment.NewLine + source);
MarkedSource\MarkupTestFile.cs (1)
79if (namedSpanStartMatch.Success)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
5064Assert.True(match.Success, $"Expected pattern:{Environment.NewLine}{pattern}{Environment.NewLine}Actual:{Environment.NewLine}{output}")
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
308if (!match.Success)
Workspace\Solution\ProjectInfo.cs (1)
529return match.Success ? (match.Groups["name"].Value, match.Groups["flavor"].Value) : default;
Microsoft.Data.Analysis (4)
TextFieldParser.cs (4)
81if (!delimiterMatch.Success) 101if (delimiterMatch.Success) 789quoteDelimited = matchResult.Success; 854if (delimiterMatch.Success)
Microsoft.Data.Analysis.Tests (4)
src\Microsoft.Data.Analysis\TextFieldParser.cs (4)
81if (!delimiterMatch.Success) 101if (delimiterMatch.Success) 789quoteDelimited = matchResult.Success; 854if (delimiterMatch.Success)
Microsoft.DotNet.Arcade.Sdk (2)
src\CheckRequiredDotNetVersion.cs (1)
83if (!match.Success)
src\LocateDotNet.cs (1)
62if (!match.Success)
Microsoft.DotNet.Build.Tasks.Feed (7)
src\AzureDevOpsNugetFeedAssetPublisher.cs (1)
39if (!parsedUri.Success)
src\BlobFeedAction.cs (1)
43if (m.Success)
src\BlobUrlInfo.cs (2)
42if (hostNameMatch.Success) 55if (containerAndBlobMatch.Success)
src\BuildModelFactory.cs (1)
285if (m.Success)
src\PublishArtifactsInManifestBase.cs (2)
1290if (!parsedUri.Success) 1640if (!parsedUri.Success)
Microsoft.DotNet.Build.Tasks.Installers (1)
src\GenerateCurrentVersion.cs (1)
100if (match.Success && match.Groups.Count > 2)
Microsoft.DotNet.Git.IssueManager (3)
Clients\AzureDevOpsClient.cs (2)
70if (!m.Success) 73if (!m.Success)
Clients\GitHubClient.cs (1)
104if (!match.Success)
Microsoft.DotNet.Helix.JobSender (1)
JobDefinition.cs (1)
284if (queueInfoSplit.Success && queueInfoSplit.Groups.Count == 3)
Microsoft.DotNet.VersionTools.Tasks (1)
UpdateToRemoteDependencies.cs (1)
106if (!match.Success)
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\ChatClientStructuredOutputExtensionsTests.cs (1)
88Assert.True(suppliedSchemaMatch.Success);
Microsoft.ML.Data (7)
Commands\EvaluateCommand.cs (1)
81if (!match.Success)
Dirty\IniFileUtils.cs (1)
42Contracts.Check(match.Success, "Unable to retrieve number of evaluators from ini");
EntryPoints\EntryPointNode.cs (5)
764return str != null && _stageIdRegex.Match(str).Success; 1075if (!match.Success) 1078if (match.Groups["NumericAccessor"].Success) 1085if (match.Groups["StringAccessor"].Success) 1109return _variableRegex.Match(variableName).Success;
Microsoft.ML.ResultProcessor (4)
ResultProcessor.cs (4)
610if (mc.Success) 619if (mc.Success) 796if (matchNameValueDeviation.Success) 816if (matchNameValue.Success)
Microsoft.ML.Tokenizers (1)
PreTokenizer\PreTokenizer.cs (1)
167if (m.Success)
Microsoft.VisualBasic.Core (4)
Microsoft\VisualBasic\FileIO\TextFieldParser.vb (4)
905QuoteDelimited = MatchResult.Success 970If DelimiterMatch.Success Then 1648If Not DelimiterMatch.Success Then 1664If DelimiterMatch.Success Then
MSBuild (1)
DebugUtils.cs (1)
74if (!match.Success)
SemanticSearch.BuildTask (1)
GenerateFilteredReferenceAssembliesTask.cs (1)
130if (!match.Success)
System.Data.Common (1)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
444if (!match.Success || (match.Length != connectionString.Length))
System.Data.Odbc (1)
src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
444if (!match.Success || (match.Length != connectionString.Length))
System.Private.Xml (12)
System\Xml\Serialization\SourceInfo.cs (2)
71if (match.Success) 192if (match.Success)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (10)
2709if (match.Success) 2755if (match.Success) 2799if (match.Success) 2835if (match.Success) 3522if (match.Success) 3532if (match.Success) 3544if (match.Success) 3556if (match.Success) 3570if (match.Success) 3583if (match.Success)
System.Text.RegularExpressions (5)
System\Text\RegularExpressions\Group.cs (1)
51if (inner.Success)
System\Text\RegularExpressions\Match.cs (2)
85/// The main difference between the public <see cref="Group.Success"/> property and this one, is that <see cref="Group.Success"/> requires
System\Text\RegularExpressions\MatchCollection.cs (1)
93if (!match.Success)
System\Text\RegularExpressions\Regex.cs (1)
550if (!match.Success)
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (1)
195if (match.Success)
TaskUsageLogger (1)
TaskUsageLogger.cs (1)
313for (var match = s_msbuildPropertyRegex.Match(unevaluatedString); match.Success; match = match.NextMatch())
Templates.Blazor.Tests (3)
BlazorWasmTemplateTest.cs (1)
120Assert.True(serviceWorkerAssetsManifestVersionMatch.Success);
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
807if (!match.Success)
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
807if (!match.Success)
Templates.Blazor.WebAssembly.Tests (2)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
807if (!match.Success)
Templates.Mvc.Tests (2)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
807if (!match.Success)
Templates.Tests (2)
src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
807if (!match.Success)
VersioningWebSite (1)
VersionRouteAttribute.cs (1)
54if (!match.Success)
XmlFileLogger (1)
XmlFileLogger.cs (1)
137if (match.Success)
xunit.assert (2)
StringAsserts.cs (2)
540 if (match.Success) 570 if (match.Success)