文章 IApplication 类

  • 命名空间: Limyee.Extensibility.Api.Version1
  • 程序集: Limyee.Core.dll

定义

interface IApplication
{
	Guid ApplicationId { get;  }
	Guid ApplicationTypeId { get;  }
	string AvatarUrl { get;  }
	IContainer Container { get;  }
	bool IsEnabled { get;  }
	string Url { get;  }
	string HtmlDescription(string target);
	string HtmlName(string target);
}

属性

名称

类型

描述

默认值

选项

ApplicationId

Guid

A Guid uniquely identifying the application.

ApplicationTypeId

Guid

A Guid identifying the type of application. All applications of the same type (i.e. wiki) will have the same value here.

AvatarUrl

string

This can represent a Url to an image particular to the application or application type.

Container

IContainer

The container in which the application is located.

IsEnabled

bool

A flag representing whether the application is enabled.

Url

string

A Url to the application on the site.

方法

string HtmlDescription(string target);

This method should return the Html encoded description of the application. Possible values for “target” are “Web”, “Email”, “WebServices”, or “raw”. When “raw” is specified as the target, the description should not be encoded or have any special rendering done to it. If there is no description, an empty string should be returned.

参数

名称

类型

描述

必需

默认值

选项

target

string

Target

返回类型

string

string HtmlName(string target);

This method should return the Html encoded name of the application. Possible values for “target” are “Web”, “Email”, or “raw”. When “raw” is specified as the target, the name should not be encoded.

参数

名称

类型

描述

必需

默认值

选项

target

string

Target

返回类型

string