SqlCeReplication.AddSubscription Method

This type has a SecurityCriticalAttribute attribute, which restricts it to internal use by the .NET Framework for Silverlight class library. Application code that uses any member of this type throws a MethodAccessException.

[SECURITY CRITICAL]

Creates a new anonymous subscription to an existing SQL Server publication. After calling the AddSubscription method, the application must call the Synchronize method to synchronize the new subscription to the publication based on the latest snapshot.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

Syntax

'Declaration
Public Sub AddSubscription ( _
    addOption As AddOption _
)
'Usage
Dim instance As SqlCeReplication
Dim addOption As AddOption

instance.AddSubscription(addOption)
public void AddSubscription(
    AddOption addOption
)
public:
void AddSubscription(
    AddOption addOption
)
member AddSubscription : 
        addOption:AddOption -> unit 
public function AddSubscription(
    addOption : AddOption
)

Parameters

See Also

Reference

SqlCeReplication Class

System.Data.SqlServerCe Namespace