Class AllowedType
Describes a requirement on what FileInfo can be selected. This can be combined with other IAllowedType in a FileDialog to for example show only .csv files but let user change to open any if they want.
public class AllowedType : IAllowedType
- Inheritance
-
AllowedType
- Implements
- Inherited Members
Constructors
- AllowedType(string, params string[])
Initializes a new instance of the AllowedType class.
Properties
- Description
Gets or Sets the human-readable description for the file type e.g. "Comma Separated Values".
- Extensions
Gets or Sets the permitted file extension(s) (e.g. ".csv").
Methods
- IsAllowed(string)
Returns true if the file at
path
is compatible with this allow option. Note that the file may not exist (e.g. in the case of saving).
- ToString()
Returns Description plus all Extensions separated by semicolons.