| Visual Basic (Declaration) | |
|---|---|
Public Sub Clear() | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As TargetFormats instance.Clear() | |
| C# | |
|---|---|
public void Clear() | |
| C++/CLI | |
|---|---|
public: void Clear(); | |
| Exception | Description |
|---|---|
| System.Runtime.InteropServices.COMException |
Removes all TargetFormat items from the collection. If the method fails, an error is raised. For more information, refer to the Error Codes.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
Copy Code