109 references to GetFileName
mscorlib (34)
system\io\__error.cs (1)
117path = Path.GetFileName(path);
system\io\directoryinfo.cs (2)
115OriginalPath = Path.GetFileName(fullPath); 756dirName = Path.GetFileName(s);
system\io\file.cs (2)
918FileStream.DefaultBufferSize, FileOptions.None, Path.GetFileName(path), false, false, checkHost)) { 979FileStream.DefaultBufferSize, FileOptions.None, Path.GetFileName(path), false, false, checkHost))
system\io\fileinfo.cs (4)
113_name = Path.GetFileName(fileName); 134_name = Path.GetFileName(OriginalPath); 144_name = Path.GetFileName(fullPath); 479_name = Path.GetFileName(fullDestFileName);
system\io\filestream.cs (8)
512: this(path, mode, (mode == FileMode.Append ? FileAccess.Write : FileAccess.ReadWrite), FileShare.Read, DefaultBufferSize, FileOptions.None, Path.GetFileName(path), false) { 519: this(path, mode, access, FileShare.Read, DefaultBufferSize, FileOptions.None, Path.GetFileName(path), false) { 526: this(path, mode, access, share, DefaultBufferSize, FileOptions.None, Path.GetFileName(path), false) { 533: this(path, mode, access, share, bufferSize, FileOptions.None, Path.GetFileName(path), false) 542: this(path, mode, access, share, bufferSize, options, Path.GetFileName(path), false) 554: this(path, mode, access, share, bufferSize, (useAsync ? FileOptions.Asynchronous : FileOptions.None), Path.GetFileName(path), false) 569Init(path, mode, (FileAccess)0, (int)rights, true, share, bufferSize, options, secAttrs, Path.GetFileName(path), false, false, false); 585Init(path, mode, (FileAccess)0, (int)rights, true, share, bufferSize, options, secAttrs, Path.GetFileName(path), false, false, false);
system\io\isolatedstorage\isolatedstoragefile.cs (2)
2898m_Current.Path1 = Path.GetFileName(m_RootDir[m_nRootDir]); 2899m_Current.Path2 = Path.GetFileName(m_SubDir[m_nSubDir]);
system\io\path.cs (1)
1024path = GetFileName(path);
system\io\streamreader.cs (1)
240Stream stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, DefaultFileStreamBufferSize, FileOptions.SequentialScan, Path.GetFileName(path), false, false, checkHost);
system\io\streamwriter.cs (1)
227DefaultFileStreamBufferSize, FileOptions.SequentialScan, Path.GetFileName(path), false, false, checkHost);
system\reflection\emit\assemblybuilder.cs (6)
863if (!String.Equals(fileName, Path.GetFileName(fileName))) 1042if (!String.Equals(fileName, Path.GetFileName(fileName))) 1070fileName = Path.GetFileName(fullFileName); 1132if (!String.Equals(fileName, Path.GetFileName(fileName))) 1158fileName = Path.GetFileName(fullFileName); 1772if (!String.Equals(assemblyFileName, Path.GetFileName(assemblyFileName)))
system\resources\resourcemanager.cs (3)
1568throw new ApplicationException(Environment.GetResourceString("XMLSyntax_InvalidSyntaxSatAssemTag", Path.GetFileName(fileName), assemblyNode.Name)); 1571throw new ApplicationException(Environment.GetResourceString("XMLSyntax_InvalidSyntaxSatAssemTagNoAttr", Path.GetFileName(fileName))); 1576throw new ApplicationException(Environment.GetResourceString("XMLSyntax_InvalidSyntaxSatAssemTagBadAttr", Path.GetFileName(fileName), de.Key, de.Value));
system\resources\resourcereader.cs (1)
167_store = new BinaryReader(new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read, DefaultFileStreamBufferSize, FileOptions.RandomAccess, Path.GetFileName(fileName), false), Encoding.UTF8);
system\runtime\interopservices\typelibconverter.cs (2)
125String strNonQualifiedAsmFileName = Path.GetFileName(asmFileName); 313String strFileNameNoPath = Path.GetFileName(asmFileName);
PresentationBuildTasks (5)
BuildTasks\Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
396relPath = Path.GetFileName(fullFilePath);
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (2)
375return Path.Combine(_backupPath, Path.ChangeExtension(Path.GetFileName(fileName), "uidtemp")); 380return Path.Combine(_backupPath, Path.ChangeExtension(Path.GetFileName(fileName), "uidbackup"));
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (1)
3243resourceId = Path.GetFileName(fullFilePath);
BuildTasks\MS\Internal\Tasks\IncrementalCompileAnalyzer.cs (1)
500relContentFilePath = Path.GetFileName(fullPath);
PresentationCore (2)
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (1)
913fileName = Path.GetFileName(fileName);
Core\CSharp\MS\Internal\FontCache\FontSourceCollection.cs (1)
211if (Path.GetFileName(fileName) == fileName)
PresentationFramework (3)
src\Framework\Microsoft\Win32\FileDialog.cs (2)
327string safeFN = Path.GetFileName(CriticalFileName); 363safeFileNames[i] = Path.GetFileName(unsafeFileNames[i]);
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
126string hostProcessName = Path.GetFileName(UnsafeNativeMethods.GetModuleFileName(new HandleRef()));
System (11)
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
590string fileName = Path.GetFileName(s);
compmod\system\codedom\compiler\CodeDOMProvider.cs (1)
322if (Path.GetFileName(s).Equals("mscorlib.dll", StringComparison.OrdinalIgnoreCase)) {
compmod\system\componentmodel\design\DesigntimeLicenseContext.cs (1)
171fileName = Path.GetFileName(fileName); // we don't want to use FileInfo here... it requests FileIOPermission that we
compmod\system\diagnostics\TextWriterTraceListener.cs (1)
215string fileNameOnly = Path.GetFileName(fullPath);
compmod\system\diagnostics\TraceInternal.cs (1)
62appName = Path.GetFileName(Environment.GetCommandLineArgs()[0]);
net\System\Net\webclient.cs (1)
629+ "Content-Disposition: form-data; name=\"file\"; filename=\"" + Path.GetFileName(fileName) + "\"\r\n"
services\io\system\io\FileSystemWatcher.cs (1)
680string name = System.IO.Path.GetFileName(relativePath);
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (1)
371iniWriter.WriteLine(Path.GetFileName(SymbolFilePath));
services\monitoring\system\diagnosticts\Process.cs (1)
876processInfo.processName = Path.ChangeExtension(Path.GetFileName(mainModuleName), null);
services\monitoring\system\diagnosticts\ProcessManager.cs (1)
373processInfo.processName = Path.ChangeExtension(Path.GetFileName(name), null);
sys\system\configuration\ConfigurationException.cs (1)
202filename = Path.GetFileName(fullPath);
System.Activities (1)
System\Activities\Debugger\State.cs (1)
226string fileNameOnly = Path.GetFileName(newFileName);
System.AddIn (2)
System\Addin\Hosting\AddInStore.cs (1)
1262String assemblyFileName = Path.GetFileName(assemblyPath);
System\Addin\Hosting\AddInToken.cs (1)
352String fileName = Path.GetFileName(component.Location);
System.Configuration (2)
System\Configuration\ConfigurationErrorsException.cs (1)
357return Path.GetFileName(fullPath);
System\Configuration\PropertySourceInfo.cs (1)
43filename = Path.GetFileName(_fileName);
System.Core (2)
System\IO\__Error.cs (1)
130path = Path.GetFileName(path);
System\IO\LogStream.cs (1)
154__Error.WinIOError(errorCode, Path.GetFileName(_fileName));
System.Data.Entity (1)
System\Data\SqlClient\SqlProviderUtilities.cs (1)
320AppendStringLiteral(Path.GetFileName(path));
System.Data.Entity.Design (1)
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
71System.IO.Path.GetFileName( _targetFilePath ),
System.Data.Linq (2)
SqlClient\SqlBuilder.cs (2)
25sb.AppendFormat(" ON PRIMARY (NAME='{0}', FILENAME='{1}')", Path.GetFileName(dataFilename), dataFilename); 26sb.AppendFormat(" LOG ON (NAME='{0}', FILENAME='{1}')", Path.GetFileName(logFilename), logFilename);
System.Data.Services.Design (2)
System\Data\EntityModel\DataServiceBuildProvider.cs (1)
120errorMessage = String.Format(CultureInfo.CurrentCulture, "{0}: {1}", IO.Path.GetFileName(mapFilePath), errorMessage);
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
137System.IO.Path.GetFileName(_targetFilePath),
System.Management (1)
Instrumentation\ManagementInstaller.cs (1)
142mofFile = Path.GetFileName(mofFile);
System.Runtime.Serialization (1)
System\Runtime\Serialization\CodeExporter.cs (1)
128string assemblyName = System.IO.Path.GetFileName(assembly.Location);
System.ServiceModel (1)
System\ServiceModel\Description\ServiceContractGenerator.cs (1)
76string assemblyName = System.IO.Path.GetFileName(assembly.Location);
System.ServiceModel.Activation (1)
System\ServiceModel\Activities\Activation\WorkflowServiceHostFactory.cs (1)
272string path = Path.Combine(SupportedVersionsFolder, xamlFileName, Path.GetFileName(file));
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\WorkflowServiceHost.cs (1)
686this.DurableInstancingOptions.ScopeName = XName.Get(XmlConvert.EncodeLocalName(Path.GetFileName(virtualPathExtension.VirtualPath)),
System.Web (16)
Compilation\AssemblyBuilder.cs (1)
120string baseFileName = Path.GetFileName(basePath);
Compilation\BaseTemplateBuildProvider.cs (1)
172string assemblyFilename = Path.GetFileName(results.PathToAssembly);
Compilation\BuildManager.cs (1)
2873string themeDirName = Path.GetFileName(themeDirPath);
Compilation\BuildResultCache.cs (1)
52string assemblyName = Util.GetAssemblyNameFromFileName(Path.GetFileName(assemblyPath));
Compilation\PreservationFileReader.cs (3)
39Debug.Trace("PreservationFileReader", "Can't find preservation file " + Path.GetFileName(preservationFile)); 121Debug.Trace("PreservationFileReader", Path.GetFileName(preservationFile) + 137Debug.Trace("PreservationFileReader", Path.GetFileName(preservationFile) +
Configuration\VirtualDirectoryMapping.cs (1)
138Path.GetFileName(fullConfigFilename) != _configFileBaseName ||
FileChangesMonitor.cs (6)
1727file = Path.GetFileName(fullPathName); 1832file = Path.GetFileName(fullPathName); 1974string name = Path.GetFileName(dir); 2124file = Path.GetFileName(fullPathName); 2185file = Path.GetFileName(fullPathName); 2250file = Path.GetFileName(fullPathName);
HttpRuntime.cs (1)
2670return Path.GetFileName(path);
UI\WebControls\FileUpload.cs (1)
139fileName = Path.GetFileName(fullFileName);
System.Web.Extensions (4)
Compilation\WCFBuildProvider.cs (3)
186errorMessage = String.Format(CultureInfo.CurrentCulture, "{0}: {1}", IO.Path.GetFileName(mapFilePath), errorMessage); 229System.IO.Path.GetFileName(mapFilePath) : generatedNamespace; 246errorMessage = String.Format(CultureInfo.CurrentCulture, "{0}: {1}", IO.Path.GetFileName(mapFilePath), errorMessage);
Script\Services\WebServiceData.cs (1)
61string name = Path.GetFileName(appRelativePath);
System.Web.Services (2)
System\Web\Services\Discovery\DiscoveryReference.cs (1)
115return Path.GetFileName(name);
System\Web\Services\Discovery\DiscoveryRequestHandler.cs (1)
73string discoFileName = Path.GetFileName(physicalPath);
System.Windows.Forms (3)
winforms\Managed\System\WinForms\DataGridViewHeaderCell.cs (1)
504string themeFilename = System.IO.Path.GetFileName(System.Windows.Forms.VisualStyles.VisualStyleInformation.ThemeFilename);
winforms\Managed\System\WinForms\OpenFileDialog.cs (1)
275return System.IO.Path.GetFileName(fullPath);
winforms\Managed\System\WinForms\ProfessionalColorTable.cs (1)
1520string themeFileName = System.IO.Path.GetFileName(VisualStyleInformation.ThemeFilename);
System.Workflow.ComponentModel (7)
AuthoringOM\Compiler\CompileXomlTask.cs (1)
1200manifestName += Path.Combine(everettCompatibleDirectoryName, Path.GetFileName(info.cultureNeutralFilename));
AuthoringOM\Compiler\XomlCompiler.cs (3)
702string mscorlibName = Path.GetFileName(mscorlibPath); 716if ((mscorlibIndex == -1) && (string.Compare(mscorlibName, Path.GetFileName(assemblyPath), StringComparison.OrdinalIgnoreCase) == 0)) 911localAssemblyPath = clonedParams.OutputAssembly = tempAssemblyDirectory + "\\" + Path.GetFileName(clonedParams.OutputAssembly);
AuthoringOM\Compiler\XomlCompilerHelpers.cs (2)
388string userAssemblyFileName = Path.GetFileName(userAssembly); 389string standardAssemblyFileName = Path.GetFileName(assemblyPath);
AuthoringOM\Design\WorkflowPrinting.cs (1)
250headerFooter = headerFooter.Replace("{FileName}", Path.GetFileName(headerFooterPrintData.FileName));
UIAutomationClient (1)
MS\Internal\Automation\ProxyManager.cs (1)
334return System.IO.Path.GetFileName(sb.ToString().ToLower(CultureInfo.InvariantCulture));
WindowsBase (1)
Base\System\IO\Packaging\PackUriHelper.cs (1)
457string file = Path.GetFileName(partName);
XamlBuildTask (2)
Microsoft\Build\Tasks\Xaml\PartialClassGenerationTaskInternal.cs (1)
422classData.EmbeddedResourceFileName = Path.GetFileName(markupFileName);
Microsoft\Build\Tasks\Xaml\XamlBuildTaskServices.cs (1)
776string asmName = Path.GetFileName(item.ItemSpec);