public class FileInfo extends FileSystemInfo
.NET documentation at https://learn.microsoft.com/dotnet/api/System.IO.FileInfo
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
|
static java.lang.String |
assemblyShortName
Assembly name: System.Private.CoreLib
|
static java.lang.String |
className
Qualified class name: System.IO.FileInfo
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
FileInfo() |
FileInfo(java.lang.Object instance)
Internal constructor.
|
FileInfo(java.lang.String fileName)
Initializes a new instance by invoking the .NET constructor.
|
| Modifier and Type | Method and Description |
|---|---|
StreamWriter |
AppendText()
Invokes the .NET member AppendText.
|
static FileInfo |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into FileInfo, a cast assert is made to check if types are compatible. |
FileInfo |
CopyTo(java.lang.String destFileName)
Invokes the .NET member CopyTo.
|
FileInfo |
CopyTo(java.lang.String destFileName,
boolean overwrite)
Invokes the .NET member CopyTo.
|
FileStream |
Create()
Invokes the .NET member Create.
|
StreamWriter |
CreateText()
Invokes the .NET member CreateText.
|
void |
Decrypt()
Invokes the .NET member Decrypt.
|
void |
Delete()
Invokes the .NET member Delete.
|
void |
Encrypt()
Invokes the .NET member Encrypt.
|
DirectoryInfo |
getDirectory()
Gets the value of the .NET property Directory.
|
java.lang.String |
getDirectoryName()
Gets the value of the .NET property DirectoryName.
|
boolean |
getIsReadOnly()
Gets the value of the .NET property IsReadOnly.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
long |
getLength()
Gets the value of the .NET property Length.
|
void |
MoveTo(java.lang.String destFileName)
Invokes the .NET member MoveTo.
|
void |
MoveTo(java.lang.String destFileName,
boolean overwrite)
Invokes the .NET member MoveTo.
|
FileStream |
Open(FileMode mode)
Invokes the .NET member Open.
|
FileStream |
Open(FileMode mode,
FileAccess access)
Invokes the .NET member Open.
|
FileStream |
Open(FileMode mode,
FileAccess access,
FileShare share)
Invokes the .NET member Open.
|
FileStream |
Open(FileStreamOptions options)
Invokes the .NET member Open.
|
FileStream |
OpenRead()
Invokes the .NET member OpenRead.
|
StreamReader |
OpenText()
Invokes the .NET member OpenText.
|
FileStream |
OpenWrite()
Invokes the .NET member OpenWrite.
|
FileInfo |
Replace(java.lang.String destinationFileName,
java.lang.String destinationBackupFileName)
Invokes the .NET member Replace.
|
FileInfo |
Replace(java.lang.String destinationFileName,
java.lang.String destinationBackupFileName,
boolean ignoreMetadataErrors)
Invokes the .NET member Replace.
|
void |
setIsReadOnly(boolean IsReadOnly)
Sets the value of the .NET property IsReadOnly.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
CreateAsSymbolicLink, getAttributes, getCreationTime, getCreationTimeUtc, getExists, getExtension, getFullName, getLastAccessTime, getLastAccessTimeUtc, getLastWriteTime, getLastWriteTimeUtc, getLinkTarget, getName, GetObjectData, getUnixFileMode, Refresh, ResolveLinkTarget, setAttributes, setCreationTime, setCreationTimeUtc, setLastAccessTime, setLastAccessTimeUtc, setLastWriteTime, setLastWriteTimeUtc, setUnixFileModeGetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public FileInfo()
throws java.lang.Throwable
java.lang.Throwablepublic FileInfo(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic FileInfo(java.lang.String fileName)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
IndexOutOfRangeException
fileName - the argument of type java.lang.Stringjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic StreamWriter AppendText() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, OutOfMemoryException, ExternalException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itpublic static FileInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into FileInfo, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedFileInfo instancejava.lang.Throwable - in case of error during cast operationpublic FileInfo CopyTo(java.lang.String destFileName) throws java.lang.Throwable, ArgumentNullException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, IOException
destFileName - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itIOException - if the .NET member raises itpublic FileInfo CopyTo(java.lang.String destFileName, boolean overwrite) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, OutOfMemoryException, ExternalException, CultureNotFoundException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ObjectDisposedException, IOException
destFileName - the argument of type java.lang.Stringoverwrite - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itMethodAccessException - if the .NET member raises itMissingMethodException - if the .NET member raises itMemberAccessException - if the .NET member raises itTargetInvocationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIOException - if the .NET member raises itpublic FileStream Create() throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SerializationException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itSerializationException - if the .NET member raises itpublic StreamWriter CreateText() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, OutOfMemoryException, ExternalException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itpublic void Decrypt()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
IndexOutOfRangeException,
PlatformNotSupportedException,
CultureNotFoundException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic void Delete()
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentNullException,
ArgumentException,
CultureNotFoundException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArrayTypeMismatchException,
FormatException,
OutOfMemoryException
Delete in class FileSystemInfojava.lang.Throwable - if the call fails in the bridge or in the CLRIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itFormatException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void Encrypt()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
IndexOutOfRangeException,
PlatformNotSupportedException,
CultureNotFoundException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic DirectoryInfo getDirectory() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, InvalidOperationException, ArrayTypeMismatchException, ArgumentException, NotSupportedException, CultureNotFoundException
java.lang.Throwable - if the call fails in the bridge or in the CLRIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic java.lang.String getDirectoryName()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentNullException,
ArgumentOutOfRangeException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itpublic boolean getIsReadOnly()
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArgumentException,
OutOfMemoryException,
MissingMethodException,
TargetInvocationException,
FormatException
java.lang.Throwable - if the call fails in the bridge or in the CLRIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itFormatException - if the .NET member raises itpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class FileSystemInfopublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class FileSystemInfopublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class FileSystemInfonull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class FileSystemInfopublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class FileSystemInfopublic long getLength()
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArgumentException,
OutOfMemoryException,
MissingMethodException,
TargetInvocationException,
FormatException,
FileNotFoundException
java.lang.Throwable - if the call fails in the bridge or in the CLRIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itFormatException - if the .NET member raises itFileNotFoundException - if the .NET member raises itpublic void MoveTo(java.lang.String destFileName)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
IndexOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ArrayTypeMismatchException,
DirectoryNotFoundException,
FileNotFoundException
destFileName - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itDirectoryNotFoundException - if the .NET member raises itFileNotFoundException - if the .NET member raises itpublic void MoveTo(java.lang.String destFileName,
boolean overwrite)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
IndexOutOfRangeException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
OutOfMemoryException,
ExternalException,
CultureNotFoundException,
DirectoryNotFoundException,
FileNotFoundException
destFileName - the argument of type java.lang.Stringoverwrite - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itDirectoryNotFoundException - if the .NET member raises itFileNotFoundException - if the .NET member raises itpublic FileStream Open(FileMode mode) throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, OutOfMemoryException, ExternalException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException, SerializationException
mode - the argument of type FileModejava.lang.Throwable - if the call fails in the bridge or in the CLRIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itSerializationException - if the .NET member raises itpublic FileStream Open(FileMode mode, FileAccess access) throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, OutOfMemoryException, ExternalException, InvalidOperationException, CultureNotFoundException, ArgumentOutOfRangeException, SerializationException
mode - the argument of type FileModeaccess - the argument of type FileAccessjava.lang.Throwable - if the call fails in the bridge or in the CLRIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itSerializationException - if the .NET member raises itpublic FileStream Open(FileMode mode, FileAccess access, FileShare share) throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SerializationException
mode - the argument of type FileModeaccess - the argument of type FileAccessshare - the argument of type FileSharejava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itSerializationException - if the .NET member raises itpublic FileStream Open(FileStreamOptions options) throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SerializationException, IOException
options - the argument of type FileStreamOptionsjava.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itSerializationException - if the .NET member raises itIOException - if the .NET member raises itpublic FileStream OpenRead() throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SerializationException, IOException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itSerializationException - if the .NET member raises itIOException - if the .NET member raises itpublic StreamReader OpenText() throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic FileStream OpenWrite() throws java.lang.Throwable, NotSupportedException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, OutOfMemoryException, ExternalException, ArgumentNullException, ArgumentOutOfRangeException, InvalidOperationException, SerializationException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itSerializationException - if the .NET member raises itpublic FileInfo Replace(java.lang.String destinationFileName, java.lang.String destinationBackupFileName) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException
destinationFileName - the argument of type java.lang.StringdestinationBackupFileName - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic FileInfo Replace(java.lang.String destinationFileName, java.lang.String destinationBackupFileName, boolean ignoreMetadataErrors) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, CultureNotFoundException
destinationFileName - the argument of type java.lang.StringdestinationBackupFileName - the argument of type java.lang.StringignoreMetadataErrors - the argument of type booleanjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itpublic void setIsReadOnly(boolean IsReadOnly)
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArgumentException,
OutOfMemoryException,
MissingMethodException,
TargetInvocationException,
FormatException
IsReadOnly - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRIndexOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itFormatException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class FileSystemInfoinstance - the new underlying object