EnableClientAccessAttribute.RequiresSecureEndpoint Property

Gets or sets a value indicating whether the DomainService can only be accessed using a secure endpoint.


Namespace: System.ServiceModel.DomainServices.Hosting
Assembly: System.ServiceModel.DomainServices.Hosting (in system.servicemodel.domainservices.hosting.dll)

public bool RequiresSecureEndpoint { get; set; }
/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public boolean get_RequiresSecureEndpoint ()

/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public void set_RequiresSecureEndpoint (boolean value)

CompilerGeneratedAttribute 
public function get RequiresSecureEndpoint () : boolean

CompilerGeneratedAttribute 
public function set RequiresSecureEndpoint (value : boolean)

Property Value

true to indicate that the DomainService can only be accessed using a secure endpoint; otherwise, false.

<EnableClientAccess(RequiresSecureEndpoint = True)>
Public Class UserRegistrationService
    Inherits DomainService
    ' Class functionality here.
End Class

[EnableClientAccess(RequiresSecureEndpoint = true)]
public class UserRegistrationService : DomainService
{
    // Class functionality here.
}

Set this value to true when you need to ensure that communication with this domain service is done with a secure endpoint. For more information, see How to: Use HTTPS with a Domain Service.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008, and Windows 2000

Target Platforms

Show: