Partager via


ISite Interface

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Provides functionality required by sites. Sites bind a component to a container and enable communication between them, as well as provide a way for the container to manage its components.

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)

Syntax

'Declaration
<ComVisibleAttribute(True)> _
Public Interface ISite _
    Inherits IServiceProvider
[ComVisibleAttribute(true)]
public interface ISite : IServiceProvider

The ISite type exposes the following members.

Properties

  Name Description
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 Component When implemented by a class, gets the component associated with the ISite.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 Container When implemented by a class, gets the container associated with the ISite.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 DesignMode When implemented by a class, determines whether the component is in design mode.
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 Name When implemented by a class, gets or sets the name of the component associated with the ISite.

Top

Methods

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetService Gets the service object of the specified type. (Inherited from IServiceProvider.)

Top

Remarks

This interface exists in Silverlight as a type system requirement for ITypeDescriptorContext and compatibility requirements for TypeConverter. It is not intended for implementation.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference