PackageUtilities.IsFileNameInvalid Method
Determines whether or not the specified file name is invalid.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'宣告
Public Shared Function IsFileNameInvalid ( _
fileName As String _
) As Boolean
'用途
Dim fileName As String
Dim returnValue As Boolean
returnValue = PackageUtilities.IsFileNameInvalid(fileName)
public static bool IsFileNameInvalid(
string fileName
)
public:
static bool IsFileNameInvalid(
String^ fileName
)
static member IsFileNameInvalid :
fileName:string -> bool
public static function IsFileNameInvalid(
fileName : String
) : boolean
Parameters
- fileName
Type: System.String
The name of the file.
Return Value
Type: System.Boolean
true if the file name is invalid, false if it is valid.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.