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