public class FileSystemInfo extends MarshalByRefObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.IO.FileSystemInfo
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=9.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.FileSystemInfo
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
FileSystemInfo() |
FileSystemInfo(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static FileSystemInfo |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into FileSystemInfo, a cast assert is made to check if types are compatible. |
void |
CreateAsSymbolicLink(java.lang.String pathToTarget)
Invokes the .NET member CreateAsSymbolicLink.
|
void |
Delete()
Invokes the .NET member Delete.
|
FileAttributes |
getAttributes()
Gets the value of the .NET property Attributes.
|
DateTime |
getCreationTime()
Gets the value of the .NET property CreationTime.
|
DateTime |
getCreationTimeUtc()
Gets the value of the .NET property CreationTimeUtc.
|
boolean |
getExists()
Gets the value of the .NET property Exists.
|
java.lang.String |
getExtension()
Gets the value of the .NET property Extension.
|
java.lang.String |
getFullName()
Gets the value of the .NET property FullName.
|
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. |
DateTime |
getLastAccessTime()
Gets the value of the .NET property LastAccessTime.
|
DateTime |
getLastAccessTimeUtc()
Gets the value of the .NET property LastAccessTimeUtc.
|
DateTime |
getLastWriteTime()
Gets the value of the .NET property LastWriteTime.
|
DateTime |
getLastWriteTimeUtc()
Gets the value of the .NET property LastWriteTimeUtc.
|
java.lang.String |
getLinkTarget()
Gets the value of the .NET property LinkTarget.
|
java.lang.String |
getName()
Gets the value of the .NET property Name.
|
void |
GetObjectData(SerializationInfo info,
StreamingContext context)
Invokes the .NET member GetObjectData.
|
UnixFileMode |
getUnixFileMode()
Gets the value of the .NET property UnixFileMode.
|
void |
Refresh()
Invokes the .NET member Refresh.
|
FileSystemInfo |
ResolveLinkTarget(boolean returnFinalTarget)
Invokes the .NET member ResolveLinkTarget.
|
void |
setAttributes(FileAttributes Attributes)
Sets the value of the .NET property Attributes.
|
void |
setCreationTime(DateTime CreationTime)
Sets the value of the .NET property CreationTime.
|
void |
setCreationTimeUtc(DateTime CreationTimeUtc)
Sets the value of the .NET property CreationTimeUtc.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setLastAccessTime(DateTime LastAccessTime)
Sets the value of the .NET property LastAccessTime.
|
void |
setLastAccessTimeUtc(DateTime LastAccessTimeUtc)
Sets the value of the .NET property LastAccessTimeUtc.
|
void |
setLastWriteTime(DateTime LastWriteTime)
Sets the value of the .NET property LastWriteTime.
|
void |
setLastWriteTimeUtc(DateTime LastWriteTimeUtc)
Sets the value of the .NET property LastWriteTimeUtc.
|
void |
setUnixFileMode(UnixFileMode UnixFileMode)
Sets the value of the .NET property UnixFileMode.
|
GetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public FileSystemInfo()
throws java.lang.Throwable
java.lang.Throwablepublic FileSystemInfo(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 static FileSystemInfo cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into FileSystemInfo, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedFileSystemInfo instancejava.lang.Throwable - in case of error during cast operationpublic void CreateAsSymbolicLink(java.lang.String pathToTarget)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
IndexOutOfRangeException,
CultureNotFoundException,
InvalidOperationException,
ArgumentOutOfRangeException,
OutOfMemoryException
pathToTarget - 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 itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void Delete()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic FileAttributes getAttributes() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, CultureNotFoundException, OutOfMemoryException, MissingMethodException, TargetInvocationException, ArrayTypeMismatchException, InvalidOperationException, 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 itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidOperationException - if the .NET member raises itFormatException - if the .NET member raises itpublic DateTime getCreationTime() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, FormatException, InvalidOperationException
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 itArgumentException - if the .NET member raises itFormatException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic DateTime getCreationTimeUtc() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, OutOfMemoryException, MissingMethodException, TargetInvocationException, FormatException, InvalidOperationException, NotSupportedException
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 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 itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic boolean getExists()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getExtension()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException
java.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 itIndexOutOfRangeException - if the .NET member raises itpublic java.lang.String getFullName()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class MarshalByRefObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class MarshalByRefObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class MarshalByRefObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class MarshalByRefObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class MarshalByRefObjectpublic DateTime getLastAccessTime() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, FormatException, InvalidOperationException
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 itArgumentException - if the .NET member raises itFormatException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic DateTime getLastAccessTimeUtc() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, OutOfMemoryException, MissingMethodException, TargetInvocationException, FormatException, InvalidOperationException, NotSupportedException
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 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 itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic DateTime getLastWriteTime() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, FormatException, InvalidOperationException
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 itArgumentException - if the .NET member raises itFormatException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic DateTime getLastWriteTimeUtc() throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, OutOfMemoryException, MissingMethodException, TargetInvocationException, FormatException, InvalidOperationException, NotSupportedException
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 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 itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic java.lang.String getLinkTarget()
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentNullException,
ArgumentException,
CultureNotFoundException,
ArgumentOutOfRangeException,
OutOfMemoryException,
MissingMethodException,
TargetInvocationException,
FormatException,
InvalidOperationException
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 itCultureNotFoundException - if the .NET member raises itArgumentOutOfRangeException - 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 itInvalidOperationException - if the .NET member raises itpublic java.lang.String getName()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void GetObjectData(SerializationInfo info, StreamingContext context) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
info - the argument of type SerializationInfocontext - the argument of type StreamingContextjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - 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 itpublic UnixFileMode getUnixFileMode() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Refresh()
throws java.lang.Throwable,
IndexOutOfRangeException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
ArgumentNullException,
ArgumentException,
NotSupportedException,
CultureNotFoundException,
OutOfMemoryException,
MissingMethodException,
TargetInvocationException
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 itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itpublic FileSystemInfo ResolveLinkTarget(boolean returnFinalTarget) throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, MissingMethodException, TargetInvocationException, FormatException, InvalidOperationException, NotSupportedException
returnFinalTarget - the argument of type booleanjava.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 itArgumentOutOfRangeException - 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 itInvalidOperationException - if the .NET member raises itNotSupportedException - if the .NET member raises itpublic void setAttributes(FileAttributes Attributes) throws java.lang.Throwable, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, NotSupportedException, CultureNotFoundException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, FormatException, OutOfMemoryException
Attributes - 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 itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itNotSupportedException - 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 setCreationTime(DateTime CreationTime) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, PlatformNotSupportedException, UnauthorizedAccessException, IOException, NullReferenceException, NotSupportedException, OutOfMemoryException
CreationTime - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidTimeZoneException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itIOException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void setCreationTimeUtc(DateTime CreationTimeUtc) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentNullException, IndexOutOfRangeException, OverflowException, MissingMethodException, TargetInvocationException, ObjectDisposedException
CreationTimeUtc - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidTimeZoneException - if the .NET member raises itSecurityException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itIOException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOverflowException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class MarshalByRefObjectinstance - the new underlying objectpublic void setLastAccessTime(DateTime LastAccessTime) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, PlatformNotSupportedException, UnauthorizedAccessException, IOException, NullReferenceException, NotSupportedException, OutOfMemoryException
LastAccessTime - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidTimeZoneException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itIOException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void setLastAccessTimeUtc(DateTime LastAccessTimeUtc) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentNullException, IndexOutOfRangeException, OverflowException, MissingMethodException, TargetInvocationException, ObjectDisposedException
LastAccessTimeUtc - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidTimeZoneException - if the .NET member raises itSecurityException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itIOException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOverflowException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void setLastWriteTime(DateTime LastWriteTime) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidTimeZoneException, InvalidOperationException, PlatformNotSupportedException, UnauthorizedAccessException, IOException, NullReferenceException, NotSupportedException, OutOfMemoryException
LastWriteTime - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidTimeZoneException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itIOException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void setLastWriteTimeUtc(DateTime LastWriteTimeUtc) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, InvalidTimeZoneException, SecurityException, UnauthorizedAccessException, IOException, PlatformNotSupportedException, NullReferenceException, NotSupportedException, ArgumentNullException, IndexOutOfRangeException, OverflowException, MissingMethodException, TargetInvocationException, ObjectDisposedException
LastWriteTimeUtc - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidTimeZoneException - if the .NET member raises itSecurityException - if the .NET member raises itUnauthorizedAccessException - if the .NET member raises itIOException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNullReferenceException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOverflowException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void setUnixFileMode(UnixFileMode UnixFileMode) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
UnixFileMode - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - 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 it