IContentResolutionService 接口

定义

提供在设计时从内容页访问母版页的接口(如果诸如 Visual Studio 2005 的设计宿主提供上述成员)。Provides an interface for access to a master page from a content page at design time, if provided by a design host, such as Visual Studio 2005.

public interface class IContentResolutionService
public interface IContentResolutionService
type IContentResolutionService = interface
Public Interface IContentResolutionService

实施者说明

控件设计器或实现IContentResolutionService接口的类不应IContentResolutionService从设计宿主中假定的可用性, 如果不存在, 则应正常失败。A control designer, or a class implementing the IContentResolutionService interface, should not assume the availability of the IContentResolutionService from a design host and, if it is not available, should fail gracefully.

属性

ContentDefinitions

获取母版页中标识的内容占位符的 ContentDefinition 对象。Gets the ContentDefinition objects for the content placeholders that are identified in the master page.

方法

GetContentDesignerState(String)

检索标识的内容占位符的当前状态。Retrieves the current state of the identified content place holder.

SetContentDesignerState(String, ContentDesignerState)

设置标识的内容占位符的当前状态。Sets the current state of the identified content place holder.

适用于

另请参阅