228 references to Success
aspire (10)
Certificates\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
Certificates\CertificateGeneration\UnixCertificateManager.cs (1)
953if (!match.Success)
Certificates\CertificateHelpers.cs (1)
118if (!match.Success)
Projects\FallbackProjectParser.cs (1)
291if (match.Success)
Projects\ProjectUpdater.cs (1)
581if (!match.Success)
src\Shared\ConsoleLogs\TimestampParser.cs (1)
17if (match.Success)
src\Shared\ConsoleLogs\UrlParser.cs (1)
25while (urlMatch.Success)
Utils\EnvironmentChecker\ContainerRuntimeCheck.cs (1)
378if (match.Success && Version.TryParse(match.Groups[1].Value, out var version))
Utils\EnvironmentChecker\WslEnvironmentCheck.cs (1)
98if (kernelVersionMatch.Success && int.TryParse(kernelVersionMatch.Groups[1].Value, out int majorVersion))
Utils\MarkdownToSpectreConverter.cs (1)
174if (match.Success)
Aspire.Cli.EndToEnd.Tests (3)
McpDocsE2ETests.cs (3)
147Assert.True(slugMatch.Success, "Could not find a slug in search_docs output. Search results should include slugs for use with get_doc."); 196Assert.True(slugMatch.Success, "Could not find a slug in list_docs output"); 245Assert.True(slugMatch.Success, "Could not find a slug in list_docs output");
Aspire.Cli.Tests (4)
Mcp\E2E\McpDocsE2ETests.cs (3)
129Assert.True(slugMatch.Success, "Could not find a slug in search_docs output. Search results should include slugs for use with get_doc."); 173Assert.True(slugMatch.Success, "Could not find a slug in list_docs output"); 217Assert.True(slugMatch.Success, "Could not find a slug in list_docs output");
Mcp\ListConsoleLogsToolTests.cs (1)
206return match.Success ? match.Groups[1].Value : string.Empty;
Aspire.Dashboard (5)
Model\ConnectionStringParser.cs (3)
229if (match.Success) 326if (match.Success) 329if (match.Groups[2].Success && int.TryParse(match.Groups[2].Value, out var portValue))
src\Shared\ConsoleLogs\TimestampParser.cs (1)
17if (match.Success)
src\Shared\ConsoleLogs\UrlParser.cs (1)
25while (urlMatch.Success)
Aspire.EndToEnd.Tests (1)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
216if (m.Success)
Aspire.Hosting (5)
Dashboard\DashboardService.cs (1)
53Match { Success: true } match => match.Groups["name"].Value,
Dcp\DcpExecutor.cs (1)
584Match { Success: true } match => match.Groups["name"].Value,
src\Shared\ConsoleLogs\TimestampParser.cs (1)
17if (match.Success)
Utils\ContainerReferenceParser.cs (2)
21if (!match.Success) 34=> group.Success ? group.Value : default;
Aspire.Hosting.Kubernetes (1)
KubernetesResource.cs (1)
730if (expression is not { Success: true } or not { Captures.Count: > 0 })
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (2)
286Assert.True(match1.Success); 288Assert.True(match2.Success);
Aspire.Hosting.Python (2)
PythonVersionDetector.cs (2)
37if (match.Success) 98if (match.Success && match.Groups.Count > 2)
Aspire.Hosting.Redis.Tests (1)
AddRedisTests.cs (1)
922Assert.True(match.Success, $"Expected value expression to contain a conditional reference '{{cond-*.connectionString}}', but got: {valueExpression}");
Aspire.Hosting.SqlServer (2)
SqlServerBuilderExtensions.cs (2)
278if (matchGo.Success) 281var count = matchGo.Groups["repeat"].Success ? int.Parse(matchGo.Groups["repeat"].Value, CultureInfo.InvariantCulture) : 1;
Aspire.Templates.Tests (1)
tests\Shared\TemplatesTesting\AspireProject.cs (1)
216if (m.Success)
dotnet (1)
Commands\Test\MTP\Terminal\TerminalTestReporter.cs (1)
663if (match.Success)
dotnet-dev-certs (2)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
953if (!match.Success)
dotnet-Microsoft.XmlSerializer.Generator (1)
Sgen.cs (1)
633if (match != null && match.Success)
dotnet-svcutil-lib (5)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (2)
565if (m.Success) 575if (m.Success)
FrameworkFork\Microsoft.CodeDom\Microsoft\VBCodeProvider.cs (1)
546if (m.Success)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SourceInfo.cs (2)
67if (match.Success) 190if (match.Success)
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
308if (!match.Success)
installer.tasks (1)
StaticFileRegeneration\TpnSectionHeader.cs (1)
158(numberListMatch = NumberListPrefix.Match(lines[i])).Success)
Microsoft.AspNetCore.App.Analyzers (1)
RouteEmbeddedLanguage\Infrastructure\EmbeddedLanguageCommentDetector.cs (1)
41if (!match.Success)
Microsoft.AspNetCore.Components.WebView.Maui (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
94 if (ContentUrlRegex.Match(requestPath) is { Success: true } match)
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
94 if (ContentUrlRegex.Match(requestPath) is { Success: true } match)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
src\BlazorWebView\src\SharedSource\StaticContentHotReloadManager.cs (1)
94 if (ContentUrlRegex.Match(requestPath) is { Success: true } match)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
953if (!match.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.Server.Kestrel.Core (2)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
953if (!match.Success)
Microsoft.Build (24)
BuildCheck\Infrastructure\EditorConfig\EditorConfigFile.cs (2)
87if (sectionMatch.Success && sectionMatch.Groups.Count > 0) 100if (propMatch.Success && propMatch.Groups.Count > 1)
BuildCheck\Infrastructure\EditorConfig\EditorConfigGlobsMatcher.cs (1)
46if (!match.Success)
Construction\Solution\SolutionFile.cs (4)
1077ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(match.Success, "SubCategoryForSolutionParsingErrors", 1095ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(match.Success, "SubCategoryForSolutionParsingErrors", 1503ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(match.Success, "SubCategoryForSolutionParsingErrors", 1603ProjectFileErrorUtilities.VerifyThrowInvalidProjectFile(match.Success, "SubCategoryForSolutionParsingErrors",
Evaluation\Expander.cs (7)
1161Assumed.True(itemMetadataMatch.Success, "Need a valid item metadata."); 3013if (!match.Success) 3023while (match.Success) 3038bool isSingleMatch = multipleMatches == null && !nextMatch.Success; 3594if (!match.Success) 3620while (match.Success); 3646while (match.Success);
Evaluation\IntrinsicFunctions.cs (1)
295if (m.Success && m.Groups.Count >= 1 && valueName.Equals("InstallRoot", StringComparison.OrdinalIgnoreCase))
src\msbuild\src\Shared\CanonicalError.cs (8)
341if (!match.Success) 349if (!match.Success) 411if (match.Success) 430if (match.Success) 437if (match.Success) 445if (match.Success) 453if (match.Success) 462if (match.Success)
Utilities\ProjectWriter.cs (1)
153Assumed.True(itemVectorTransform.Success, "Item vector transform must be matched by both the raw and decorated regular expressions.");
Microsoft.Build.Framework (2)
NodeMode.cs (1)
133if (!match.Success)
Utilities\FileMatcher.cs (1)
1881isMatch = match.Success;
Microsoft.Build.Tasks.CodeAnalysis (7)
src\roslyn\src\Compilers\Core\MSBuildTask\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 (13)
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (1)
103if (match.Success)
BootstrapperUtil\BuildMessage.cs (1)
34if (match.Success)
FindInvalidProjectReferences.cs (1)
127if (match.Success)
NativeMethods.cs (1)
519if (match.Success)
ResolveSDKReference.cs (1)
587if (match.Success)
src\msbuild\src\Shared\CanonicalError.cs (8)
341if (!match.Success) 349if (!match.Success) 411if (match.Success) 430if (match.Success) 437if (match.Success) 445if (match.Success) 453if (match.Success) 462if (match.Success)
Microsoft.Build.Utilities.Core (8)
src\msbuild\src\Shared\CanonicalError.cs (8)
341if (!match.Success) 349if (!match.Success) 411if (match.Success) 430if (match.Success) 437if (match.Success) 445if (match.Success) 453if (match.Success) 462if (match.Success)
Microsoft.CodeAnalysis (2)
CommandLine\AnalyzerConfig.SectionNameMatching.cs (1)
45if (!match.Success)
SourceGeneration\AdditionalSourcesCollection.cs (1)
78if (s_invalidSegmentPattern.Match(hintName) is { Success: true } match)
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
308if (!match.Success)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
308if (!match.Success)
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\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.Features (1)
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (1)
324if (Patterns.DisallowedNameCharacters.Match(context.DirectiveText, beginning: 0, length: firstPart.Length).Success)
Microsoft.CodeAnalysis.Features (2)
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
371if (match.Success)
EmbeddedLanguages\EmbeddedLanguageCommentDetector.cs (1)
40if (!match.Success)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
308if (!match.Success)
Microsoft.CodeAnalysis.Workspaces (4)
PatternMatching\RegexPatternMatcher.cs (2)
57if (!caseInsensitiveMatch.Success) 63var isCaseSensitive = caseSensitiveMatch.Success;
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
308if (!match.Success)
Workspace\Solution\ProjectInfo.cs (1)
530return 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.Diagnostics.NETCore.Client (1)
DiagnosticsClient\DiagnosticsClient.cs (1)
454if (!match.Success)
Microsoft.DotNet.Arcade.Sdk (2)
src\CheckRequiredDotNetVersion.cs (1)
83if (!match.Success)
src\LocateDotNet.cs (1)
62if (!match.Success)
Microsoft.DotNet.Build.Manifest (1)
BuildModelFactory.cs (1)
232if (m.Success)
Microsoft.DotNet.Build.Tasks.Installers (4)
src\CreateWixBuildWixpack.cs (3)
959if (!eqMatch.Success) 971value = eqMatch.Groups[3].Success ? eqMatch.Groups[3].Value : eqMatch.Groups[4].Value; 976value = eqMatch.Groups[5].Success ? eqMatch.Groups[5].Value : eqMatch.Groups[6].Value;
src\GenerateCurrentVersion.cs (1)
100if (match.Success && match.Groups.Count > 2)
Microsoft.DotNet.HotReload.Utils.Generator (1)
EditAndContinueCapabilitiesParser.cs (1)
16if (!match.Success)
Microsoft.DotNet.HotReload.Watch (2)
Process\WebServerProcessStateObserver.cs (1)
41if (!match.Success)
UI\BuildOutput.cs (1)
24else if (s_buildDiagnosticRegex.Match(line) is { Success: true } match)
Microsoft.DotNet.ProjectTools (1)
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\FileLevelDirectiveHelpers.cs (1)
342if (Patterns.DisallowedNameCharacters.Match(context.DirectiveText, beginning: 0, length: firstPart.Length).Success)
Microsoft.Extensions.AI.Abstractions (1)
Functions\AIFunctionFactory.cs (1)
1191if (CompilerGeneratedNameRegex().Match(memberName) is { Success: true } match)
Microsoft.Extensions.AI.Evaluation.Quality (2)
EvaluationMetricExtensions.cs (2)
106if (!match.Success || match.Groups["value"] is not Group valueGroup || !valueGroup.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.NET.Build.Containers (7)
ContainerHelpers.cs (5)
185if (referenceMatch is not { Success: true }) 204if (nameMatch is { Success: true }) 212isRegistrySpecified = registryPortion.Success; 241containerTag = tagPortion.Success ? tagPortion.Value : null; 245containerDigest = digestPortion.Success ? digestPortion.Value : null;
DigestUtils.cs (1)
118if (!match.Success)
ImageBuilder.cs (1)
283if (match.Success && int.TryParse(match.Groups["port"].Value, out int port))
Microsoft.NET.Sdk.Publish.Tasks (1)
WebConfigTelemetry.cs (1)
101if (match.Success)
Microsoft.NET.Sdk.StaticWebAssets.Tasks (1)
UpdateExternallyDefinedStaticWebAssets.cs (1)
160if (match.Success)
Microsoft.TestPlatform.CoreUtilities (1)
Utilities\TimeSpanParser.cs (1)
27if (!match.Success)
Microsoft.TestPlatform.Filter.Source (1)
FastFilter.cs (1)
139if (match.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
Microsoft.VisualStudio.TestPlatform.Common (1)
src\vstest\src\Microsoft.TestPlatform.Filter.Source\FastFilter.cs (1)
139if (match.Success)
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (1)
Utility\TrxFileHelper.cs (1)
280return ReservedFileNamesRegex.Match(fileName).Success;
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
DataCollector\Common\FileHelper.cs (1)
73return ReservedFileNamesRegex.Match(fileName).Success;
Microsoft.Web.XmlTransform (4)
XmlElementContext.cs (2)
310if (match.Success) { 311if (match.Groups["arguments"].Success) {
XmlTransforms.cs (2)
388if (match.Success) 526if (match.Success)
Microsoft.Win32.Msi (4)
ActionStartEventArgs.cs (3)
50ActionTime = match.Success ? match.Groups["actionTime"].Value : null; 51ActionName = match.Success ? match.Groups["actionName"].Value : null; 52ActionDescription = match.Success ? match.Groups["actionDescription"].Value : null;
ProgressEventArgs.cs (1)
35while (match.Success)
NuGet.Configuration (1)
PackageSource\PackageSourceProvider.cs (1)
348if (!match.Success)
RepoTasks (2)
src\aspnetcore\src\Shared\CertificateGeneration\MacOSCertificateManager.cs (1)
280if (!subjectMatch.Success)
src\aspnetcore\src\Shared\CertificateGeneration\UnixCertificateManager.cs (1)
953if (!match.Success)
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EditorConfig\Parsing\Sections\SectionMatcher.cs (1)
308if (!match.Success)
System.Data.Common (1)
src\runtime\src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
434if (!match.Success || (match.Length != connectionString.Length))
System.Data.Odbc (1)
src\runtime\src\libraries\Common\src\System\Data\Common\DbConnectionOptions.Common.cs (1)
434if (!match.Success || (match.Length != connectionString.Length))
System.Data.OleDb (1)
DbConnectionOptions.cs (1)
787if (!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)
2708if (match.Success) 2754if (match.Success) 2798if (match.Success) 2834if (match.Success) 3524if (match.Success) 3534if (match.Success) 3546if (match.Success) 3558if (match.Success) 3572if (match.Success) 3585if (match.Success)
System.Text.RegularExpressions (14)
System\Text\RegularExpressions\Group.cs (1)
91if (inner.Success)
System\Text\RegularExpressions\GroupCollection.cs (3)
28/// contains a single <see cref="Group" /> object whose <see cref="Group.Success" /> property is 88/// <see cref="Group.Success" /> property is <see langword="false" /> and whose 107/// <see cref="Group.Success" /> property is <see langword="false" /> and whose
System\Text\RegularExpressions\Match.cs (4)
27/// <see cref="Group.Success"/> property to determine whether the match was successful. 73/// <see cref="Group.Success"/> property. 97/// 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)
206if (!match.Success)
System\Text\RegularExpressions\Regex.cs (1)
702if (!match.Success)
System\Text\RegularExpressions\Regex.Match.cs (4)
297/// checking the returned <see cref="System.Text.RegularExpressions.Match"/> object's <see cref="Group.Success"/> property. If a match 334/// checking the returned <see cref="System.Text.RegularExpressions.Match"/> object's <see cref="Group.Success"/> property. You can 372/// checking the returned <see cref="System.Text.RegularExpressions.Match"/> object's <see cref="Group.Success"/> property. You can 403/// checking the returned <see cref="System.Text.RegularExpressions.Match"/> object's <see cref="Group.Success"/> property. If a match
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (1)
195if (match.Success)
tlens (3)
src\runtime\src\tools\illink\external\Mono.Options\Options.cs (3)
1187if (!m.Success) 1193if (m.Groups["sep"].Success && m.Groups["value"].Success)
vstest.console (2)
Internal\MSBuildLogger.cs (2)
462if (match.Success) 470return match.Success;
vstest.console.arm64 (2)
src\vstest\src\vstest.console\Internal\MSBuildLogger.cs (2)
462if (match.Success) 470return match.Success;