Export (0) Print
Expand All

IWebFormsDocumentService Interface

Provides methods to access services for tracking the loading state of a Web Forms document, handling events at load time, accessing a document's location, managing a document's undo service, and setting a new selection within the document.

For a list of all members of this type, see IWebFormsDocumentService Members.

[Visual Basic]
Public Interface IWebFormsDocumentService
[C#]
public interface IWebFormsDocumentService
[C++]
public __gc __interface IWebFormsDocumentService
[JScript]
public interface IWebFormsDocumentService

Example

[Visual Basic] 
' Obtains an instance of the IWebFormsDocumentService
' using the Site : IServiceProvider.GetService method.
Dim docService As System.Web.UI.Design.IWebFormsDocumentService = _
    CType(site.GetService(GetType(System.Web.UI.Design.IWebFormsDocumentService)), _
    System.Web.UI.Design.IWebFormsDocumentService)

[C#] 
// Obtains an instance of the IWebFormsDocumentService
// using the Site : IServiceProvider.GetService method.            
IWebFormsDocumentService docService = (IWebFormsDocumentService)site.GetService(
    typeof(IWebFormsDocumentService));

[C++] 
// Obtains an instance of the IWebFormsDocumentService
// using the Site : IServiceProvider.GetService method.
IWebFormsDocumentService* docService = dynamic_cast<IWebFormsDocumentService*>(site->GetService(__typeof(IWebFormsDocumentService)));

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Namespace: System.Web.UI.Design

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

Assembly: System.Design (in System.Design.dll)

See Also

IWebFormsDocumentService Members | System.Web.UI.Design Namespace

Show:
© 2014 Microsoft