C# Класс WixSharp.FileAssociation

Defines FileType association to be created for the file extension and the installed file/application (parent T:WixSharp.File).
Наследование: WixEntity
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Advertise bool
Arguments string
Command string
ContentType string
Description string
Icon string
IconIndex int
SequenceNo int

Открытые методы

Метод Описание
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.

Описание методов

FileAssociation() публичный Метод

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.
Результат System.Collections.Generic

FileAssociation() публичный Метод

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").
Результат System.Collections.Generic

Описание свойств

Advertise публичное свойство

Whether this extension is to be advertised. The default is false.
public bool Advertise
Результат bool

Arguments публичное свойство

Value for the command arguments. The default is "%1".
public string Arguments
Результат string

Command публичное свойство

The localized text displayed on the context menu. The default is Open.
public string Command
Результат string

ContentType публичное свойство

The MIME type that is to be written. The default is application/[extension].
public string ContentType
Результат string

Description публичное свойство

Optional localizable description of the FileAssociation.
public string Description
Результат string

Icon публичное свойство

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
Результат string

IconIndex публичное свойство

The zero-based index of the icon associated with this ProgId. The default value is 0.
public int IconIndex
Результат int

SequenceNo публичное свойство

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
Результат int