C# Class WixSharp.FileAssociation

Defines FileType association to be created for the file extension and the installed file/application (parent T:WixSharp.File).
Inheritance: WixEntity
ファイルを表示 Open project: Eun/WixSharp

Public Properties

Property Type Description
Advertise bool
Arguments string
Command string
ContentType string
Description string
Icon string
IconIndex int
SequenceNo int

Public Methods

Method Description
FileAssociation ( string extension ) : System.Collections.Generic

Initializes a new instance of the FileAssociation class.

FileAssociation ( string extension, string contentType, string command, string commandArguments ) : System.Collections.Generic

Initializes a new instance of the FileAssociation class.

Method Details

FileAssociation() public method

Initializes a new instance of the FileAssociation class.
public FileAssociation ( string extension ) : System.Collections.Generic
extension string The file extension, like "doc" or "xml". Do not include the preceding period.
return System.Collections.Generic

FileAssociation() public method

Initializes a new instance of the FileAssociation class.
public FileAssociation ( string extension, string contentType, string command, string commandArguments ) : System.Collections.Generic
extension string The file extension, like "doc" or "xml". Do not include the preceding period.
contentType string The MIME type that is to be written (e.g. application/notepad).
command string The localized text displayed on the context menu (e.g. Open).
commandArguments string Value for the command arguments (e.g. "%1").
return System.Collections.Generic

Property Details

Advertise public_oe property

Whether this extension is to be advertised. The default is false.
public bool Advertise
return bool

Arguments public_oe property

Value for the command arguments. The default is "%1".
public string Arguments
return string

Command public_oe property

The localized text displayed on the context menu. The default is Open.
public string Command
return string

ContentType public_oe property

The MIME type that is to be written. The default is application/[extension].
public string ContentType
return string

Description public_oe property

Optional localizable description of the FileAssociation.
public string Description
return string

Icon public_oe property

Reference to Icon element to be used to install the file association DefaultIcon. If the value is not set, Wix# compiler will use the Id of the File element of the parent component.FileAssociation.

Set this value to null if you do not want to install DefaultIcon at all.

public string Icon
return string

IconIndex public_oe property

The zero-based index of the icon associated with this ProgId. The default value is 0.
public int IconIndex
return int

SequenceNo public_oe property

The sequence of the commands. Only FileAssociation for which the SequenceNo is specified are used to prepare an ordered list for the default value of the shell key. The FileAssociation with the lowest value in this column becomes the default FileAssociation. Used only for Advertised FileAssociation.
public int SequenceNo
return int