본문 바로가기

VB200519

how to delete, move directory Today, we learn how to delete a directory and move. when your program must delete a directory and the files the directory contains. In such cases, you just use the Directory class Delete method. To delete a directory and, optionally, the files and subdirectories the directory contains, invoke the Delete method with the directory name and the value True like Directory.Delete("DirectoryName", True.. 2008. 6. 30.
How to use Directory Class to make a new directory How to use Directory Class to make a new directory Public NotInheritable Class Directory Inherits System.IO The Directory class is a static class, which means you do not have to create an instance of a Directory class object in order to use the class methods. You just use the class. The following program, I used to directory class Exists method to determine if the specified directory exists. If .. 2008. 6. 30.
how to use overrides Keyword This time, I'll show how to use override keyword. Generally, to override a base-class function or subroutine, a derived class must place the Overrides keyword within the method definition to tell the Visual Basic .NET compiler that its goal is to replace the base-class method implementation with its own, as shown here Public Overrides Function ToString() As String ToString = Name End Function so.. 2008. 6. 26.
A destructor method in a class A destructor method in a class Within a class, a destructor method lets the class perform “cleanup” processing before the garbage collector(GC) releases the memory that holds an object. I explained GC through last lecture. Let’s refer to last lecture http://fromyou.tistory.com/entry/memory-management-In-the-NET-environment Well, To specify the processing you want a program to perform before an o.. 2008. 6. 26.