Class DSHelper
Class Helper.
Inheritance
System.Object
DSHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: VisioForge.ProcessingFilters.Interfaces
Assembly: VisioForge.ProcessingFilters.Interfaces.dll
Syntax
public static class DSHelper
Methods
AddFileSource(String, IFilterGraph2)
Adds the file source.
Declaration
public static IBaseFilter AddFileSource(string filename, IFilterGraph2 filterGraph)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | filename | The filename. |
| IFilterGraph2 | filterGraph | The filter graph. |
Returns
| Type | Description |
|---|---|
| IBaseFilter | IBaseFilter. |
Exceptions
| Type | Condition |
|---|---|
| System.IO.FileNotFoundException | File not found. |
AddFilterFromClsid(IGraphBuilder, Guid, String)
Adds the filter from CLSID.
Declaration
[SecurityPermission(SecurityAction.LinkDemand, UnmanagedCode = true)]
public static IBaseFilter AddFilterFromClsid(IGraphBuilder graphBuilder, Guid clsid, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraphBuilder | graphBuilder | The graph builder. |
| System.Guid | clsid | The CLSID. |
| System.String | name | The name. |
Returns
| Type | Description |
|---|---|
| IBaseFilter | IBaseFilter. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | graphBuilder. |
RemoveAllFilters(IGraphBuilder, Boolean)
Removes all filters.
Declaration
[SecurityPermission(SecurityAction.LinkDemand, UnmanagedCode = true)]
public static void RemoveAllFilters(IGraphBuilder graphBuilder, bool final)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraphBuilder | graphBuilder | The graph builder. |
| System.Boolean | final | if set to |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | graphBuilder. |
SaveGraphFile(IFilterGraph2, String)
Saves the graph file.
Declaration
[SecurityPermission(SecurityAction.LinkDemand, UnmanagedCode = true)]
public static void SaveGraphFile(IFilterGraph2 graphBuilder, string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| IFilterGraph2 | graphBuilder | The graph builder. |
| System.String | fileName | Name of the file. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | graphBuilder. |