135 references to Contains
ComSvcConfig (1)
Options.cs (1)
339if (argVal.Contains(","))
Microsoft.Activities.Build (1)
Microsoft\Activities\Build\Validation\ValidationBuildExtension.cs (1)
220if (child.Id.Contains("."))
mscorlib (1)
system\timezoneinfo.cs (1)
1956else if (id.Length == 0 || id.Length > c_maxKeyLength || id.Contains("\0")) {
PresentationBuildTasks (1)
BuildTasks\MS\Internal\Tasks\IncrementalCompileAnalyzer.cs (1)
235if (!CompilerState.PageMarkupFileNames.Contains(fileName))
PresentationFramework (2)
src\Framework\System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
103if (method.Name.Contains("RegisterName"))
src\Framework\System\Windows\Markup\DependencyPropertyConverter.cs (1)
153if (value.Contains("."))
System (3)
net\System\Net\_Connection.cs (1)
2680if (server != null && server.ToLower(CultureInfo.InvariantCulture).Contains("microsoft-iis")){
net\System\Net\_ServiceNameStore.cs (1)
200else if (!hostname.Contains("."))
services\monitoring\system\diagnosticts\SharedUtils.cs (1)
280if (majorVersion.Length > 1 && majorVersion[0] == 'v' && majorVersion.Contains(".")) {
System.Activities (8)
System\Activities\Debugger\DebugInfo.cs (3)
373if (!value.Contains(",")) 384if (!value.Contains(",")) 401if (value.Contains(","))
System\Activities\WorkflowIdentity.cs (2)
203if (name.Contains(";")) 335Fx.Assert(!this.name.Contains(";"), "Regex should not have matched semi-colon");
System\Activities\XamlIntegration\ActivityXamlServices.cs (1)
466if ((resource.Contains("." + partialResourceName) || resource.Equals(partialResourceName)))
System\Activities\XamlIntegration\DynamicActivityXamlReader.cs (1)
563if (preferredNamespace.Contains(clrNamespacePart))
System\Activities\XamlIntegration\TextExpressionCompiler.cs (1)
2552if (child.Id.Contains("."))
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagPanel.cs (1)
83if (str.Contains((panel.Children[this.index] as CheckBox).Content.ToString().ToUpperInvariant()))
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyFilterPredicate.cs (1)
43return target != null && target.ToUpper(CultureInfo.CurrentCulture).Contains(_matchText);
System.AddIn (1)
System\Addin\Hosting\InspectionWorker.cs (1)
160if (!assemblyRef.Contains("PublicKeyToken=null"))
System.Configuration (2)
System\Configuration\FactoryRecord.cs (1)
321return _factoryTypeName.Contains("System.Configuration.IgnoreSection");
System\Configuration\StringAttributeCollection.cs (1)
78if (value.Contains(",")) {
System.Core (1)
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (1)
441node.NewExpression.Type.Name.Contains("<")) {
System.Data (4)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyFilterPredicate.cs (1)
43return target != null && target.ToUpper(CultureInfo.CurrentCulture).Contains(_matchText);
fx\src\data\System\Data\Common\DbProviderFactories.cs (1)
184if (configDataTable.Rows[i][AssemblyQualifiedName].ToString().ToLowerInvariant().Contains(DbProviderFactoriesConfigurationHandler.oracleclientProviderNamespace.ToString().ToLowerInvariant()))
fx\src\data\System\Data\SqlClient\LocalDBAPI.cs (2)
340Debug.Assert(!instance.Contains("\0"), "Instance name should contain embedded nulls"); 342if (instanceInfo.version.Contains("\0"))
System.Data.Entity (13)
System\Data\Mapping\ViewGeneration\Structures\MemberPath.cs (1)
239if (false == alias.Contains("_"))
System\Data\Mapping\ViewGeneration\Structures\ScalarConstant.cs (1)
130if (value.Contains("'"))
System\Data\Objects\ELinq\ExpressionConverter.cs (6)
1157return typeName.Contains("<>") && typeName.Contains("__") && typeName.Contains(pattern); 1162return typeName.Contains("_") && typeName.Contains("$") && typeName.Contains(pattern);
System\Data\SqlClient\SqlProviderManifest.cs (5)
114if (!(text.Contains("%") || text.Contains("_") || text.Contains("[") 115|| text.Contains("^") || alwaysEscapeEscapeChar && text.Contains(LikeEscapeCharToString)))
System.Data.Entity.Design (2)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (2)
108while (comment.Contains(XmlConstants.XmlCommentStartString)) 112while (comment.Contains(XmlConstants.XmlCommentEndString))
System.Data.Linq (6)
Mapping\MappedMetaModel.cs (1)
273name2 = name.Contains(".") ? null : defaultNamespace + "." + name;
SqlClient\Query\SqlFormatter.cs (1)
261if (fc.Name.Contains(".")) {
SqlClient\SqlMethods.cs (4)
686if (!(forceEscaping || text.Contains("%") || text.Contains("_") || text.Contains("[") || text.Contains("^"))) {
System.ServiceModel (11)
System\ServiceModel\Channels\BinaryMessageEncoder.cs (2)
982!acceptEncoding.Contains(MessageEncoderCompressionHandler.GZipContentEncoding)) || 984!acceptEncoding.Contains(MessageEncoderCompressionHandler.DeflateContentEncoding)))
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
2659if (httpWebRequest.ContentType.Contains("action")
System\ServiceModel\Channels\HttpChannelListener.cs (1)
763if (listenUri.DnsSafeHost.Contains("."))
System\ServiceModel\Channels\Msmq.cs (1)
75if (receiver.ListenUri.AbsoluteUri.Contains(";"))
System\ServiceModel\Channels\MsmqVerifier.cs (2)
80if (receiveParameters.ReceiveContextSettings.Enabled && formatName.Contains(";")) 118if (formatName.Contains(";"))
System\ServiceModel\Configuration\XPathMessageFilterElement.cs (1)
52if (reader.Name.Contains(":"))
System\ServiceModel\Description\ServiceMetadataExtension.cs (1)
1948text.Contains(ServiceMetadataExtension.BaseAddressPattern))
System\ServiceModel\Security\SecurityUtils.cs (2)
971if (principalName.Contains("@") || principalName.Contains(@"\"))
System.ServiceModel.Activation (2)
System\ServiceModel\Activation\ServiceRoute.cs (2)
40else if (routePrefix.Contains(LeftCurlyBracket) || routePrefix.Contains(RightCurlyBracket))
System.Web (33)
Configuration\MachineKeySection.cs (2)
324if( ValidationKey.Contains( "AutoGenerate" ) || 325DecryptionKey.Contains( "AutoGenerate" ) )
Configuration\ProfilePropertyNameValidator.cs (1)
36if (s.Contains(".")) {
Configuration\RemoteWebConfigurationHost.cs (2)
387if (fullUserName.Contains("@")) { 399if (fullUserName.Contains("@"))
Configuration\WebConfigurationHost.cs (3)
912if (moniker.Contains("3.5") || moniker.Contains("3.0") || moniker.Contains("2.0") ) {
DataAccess\SqlConnectionHelper.cs (6)
42if (strTempConnection.Contains(s_strUpperDataDirWithToken)) { 47if (strTempConnection.Contains(s_localDbName)) { 132bool lookingForUserInstance = !connectionString.ToUpperInvariant().Contains(s_localDbName); // We don't require UserInstance=True for LocalDb 138if (lookingForDataDir && strUpper.Contains(s_strUpperDataDirWithToken)) { 149if (partialFileName.Contains("..")) // don't allow it to traverse-up 187if (!connectionString.Contains("Database=master"))
HttpResponse.cs (1)
3320Debug.Assert(!url.Contains("?"), "Querystring should have been stripped off.");
Management\SqlServices.cs (6)
346if (dbFileName.Contains("[") || dbFileName.Contains("]") || dbFileName.Contains("'")) 514if (database.Contains("'") || database.Contains("[") || database.Contains("]"))
Routing\PageRouteHandler.cs (1)
29_useRouteVirtualPath = VirtualPath.Contains("{");
Routing\RouteParser.cs (2)
13if (newLiteral.Contains("{") || newLiteral.Contains("}")) {
Security\AuthStoreRoleProvider.cs (1)
542if (_ConnectionString.Contains("/~/")) {
Security\CookielessHelper.cs (1)
56if (_Headers.Length == 24 && !_Headers.Contains("(")) {
Security\FormsAuthentication.cs (2)
535if (!string.IsNullOrEmpty(returnUrl) && !returnUrl.Contains("/") && returnUrl.Contains("%"))
UI\HtmlForm.cs (2)
407if (page.ClientSupportsJavaScript || !formOnSubmit.ToLower(CultureInfo.CurrentCulture).Contains("javascript")) { 415if (page.ClientSupportsJavaScript || !onSubmit.ToLower(CultureInfo.CurrentCulture).Contains("javascript")) {
UI\WebControls\BoundField.cs (1)
516else if (!boundField.Contains(_expressionPartSeparator)) {
Util\SecUtil.cs (2)
105(checkForCommas && param.Contains(","))) { 145if (checkForCommas && param.Contains(",")) {
System.Web.DataVisualization (3)
Common\General\ImageMap.cs (2)
512if (!excludedAttr.Contains(name + ",")) 515if ("src,href,longdesc,background,".Contains(name + ",") && !IsJavaScript(value))
Common\Utilities\XmlSerializer.cs (1)
1112if (attr.ConverterTypeName.Contains(",") )
System.Web.DynamicData (1)
DynamicData\QueryStringHandler.cs (1)
24if (!virtualPath.Contains("?")) {
System.Web.Extensions (5)
ClientServices\Providers\SqlHelper.cs (3)
53if (connectionString.Contains(_SQL_CE_Tag) || (sqlProvider != null && sqlProvider.Contains(".SqlServerCe"))) { 191if (!connectionString.Contains(_SQL_CE_Tag))
Script\Services\ClientProxyGenerator.cs (1)
387if (!name.Contains(".")) {
UI\WebControls\Expressions\MethodExpression.cs (1)
85else if (MethodName.Contains("{0}")) {
System.Windows.Forms.DataVisualization (3)
Common\General\ImageMap.cs (2)
512if (!excludedAttr.Contains(name + ",")) 515if ("src,href,longdesc,background,".Contains(name + ",") && !IsJavaScript(value))
Common\Utilities\XmlSerializer.cs (1)
1112if (attr.ConverterTypeName.Contains(",") )
System.Workflow.Activities (4)
Designers\StateDesigner.cs (4)
2637if (value != null && value.Length > 0 && value.Contains(Path.DirectorySeparatorChar.ToString()) && Path.IsPathRooted(value)) 2668if (value != null && value.Length > 0 && value.Contains(Path.DirectorySeparatorChar.ToString()) && Path.IsPathRooted(value)) 2735if (!relativePath.Contains(Path.DirectorySeparatorChar.ToString())) 2743if (path.Contains(Path.DirectorySeparatorChar.ToString()) && directory.Length > 0)
System.Workflow.ComponentModel (11)
AuthoringOM\Compiler\XomlCompilerHelpers.cs (1)
269(string.IsNullOrEmpty(parameters.CompilerOptions) || !parameters.CompilerOptions.ToLower(CultureInfo.InvariantCulture).Contains("/delaysign")))
AuthoringOM\Design\DesignerHelpers.cs (2)
1466if (!relativePath.Contains(Path.DirectorySeparatorChar.ToString())) 1474if (path.Contains(Path.DirectorySeparatorChar.ToString()) && directory.Length > 0)
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (4)
973e.CancelEdit = (memberNode == null) || !memberNode.Text.Contains("[") || !memberNode.Text.Contains("]"); 1175if (memberTreeNode != null && memberTreeNode.Text.Contains("[") && currentPathInfo.Path.Contains("["))
AuthoringOM\Design\Themes.cs (3)
1074if (value != null && value.Length > 0 && value.Contains(Path.DirectorySeparatorChar.ToString()) && Path.IsPathRooted(value)) 1502if (!String.IsNullOrEmpty(value) && value.Contains(Path.DirectorySeparatorChar.ToString()) && Path.IsPathRooted(value)) 2553if (!String.IsNullOrEmpty(value) && value.Contains(Path.DirectorySeparatorChar.ToString()) && Path.IsPathRooted(value))
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (1)
108if (name.Contains("."))
System.WorkflowServices (3)
System\ServiceModel\Persistence\SqlPersistenceProviderFactory.cs (2)
552if (!lowerCaseConnectionString.Contains("CONNECTION TIMEOUT") && 553!lowerCaseConnectionString.Contains("CONNECTIONTIMEOUT"))
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (1)
134if (type.FullName.Contains("["))
System.Xml (2)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
720if (typeName.Contains(argument)) {
System\Xml\Serialization\XmlReflectionImporter.cs (1)
855if (typeName.Contains(argument)) {
UIAutomationClientsideProviders (6)
MS\Internal\AutomationProxies\WindowsScroll.cs (1)
240if (classname.ToLower(System.Globalization.CultureInfo.InvariantCulture).Contains("richedit"))
MS\Internal\AutomationProxies\WindowsScrollBar.cs (2)
575if (classname.ToLower(System.Globalization.CultureInfo.InvariantCulture).Contains("richedit")) 681if (classname.ToLower(System.Globalization.CultureInfo.InvariantCulture).Contains("richedit"))
MS\Internal\AutomationProxies\WindowsTab.cs (1)
730&& Misc.ProxyGetClassName(hwndParent).Contains("SysTabControl32"))
MS\Internal\AutomationProxies\WindowsUpDown.cs (2)
315return Misc.ProxyGetClassName(hwndParent).Contains("SysTabControl32"); 646hwndParent = Misc.ProxyGetClassName(hwndParent).Contains("SysTabControl32") ? hwndParent : IntPtr.Zero;
WindowsBase (2)
Base\System\IO\Packaging\PackUriHelper.cs (2)
763if (path.Contains(characterString)) 854if (partName.Contains("#"))
XamlBuildTask (1)
Microsoft\Build\Tasks\Xaml\XamlBuildTaskServices.cs (1)
565if ((!string.IsNullOrEmpty(localAssemblyName) && assemblyName.Contains(localAssemblyName)) || string.IsNullOrEmpty(assemblyName))