Interface IContentSoftLinkRepository
Repository for working with SoftLink instances.
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 10.10.4Syntax
public interface IContentSoftLinkRepository
Methods
Delete(ContentReference, String)
Delete all softlink references for ownerContent
with specific language
.
Declaration
void Delete(ContentReference ownerContent, string language)
Parameters
Type | Name | Description |
---|---|---|
ContentReference | ownerContent | The content reference |
System.String | language | The language |
Load(ContentReference)
Loads the links that are being referenced by an content item.
Declaration
IList<SoftLink> Load(ContentReference contentLink)
Parameters
Type | Name | Description |
---|---|---|
ContentReference | contentLink | The content item |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<SoftLink> | A list of SoftLink instances |
Load(ContentReference, Boolean)
Loads the links that are being referenced by or references an content item.
Declaration
IList<SoftLink> Load(ContentReference contentLink, bool reversed)
Parameters
Type | Name | Description |
---|---|---|
ContentReference | contentLink | The content item |
System.Boolean | reversed | If when check should be performed on links pointing to an item instead |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<SoftLink> | A list of SoftLink instances |
Load(Guid, Boolean)
Loads the links that are being referenced by or references an content item.
Declaration
IList<SoftLink> Load(Guid contentGuid, bool reversed)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | contentGuid | The content item |
System.Boolean | reversed | If when check should be performed on links pointing to an item instead |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<SoftLink> | A list of SoftLink instances |
Load(String)
Loads the links that reference the file specified with a path.
Declaration
IList<SoftLink> Load(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<SoftLink> | A collection of SoftLink instances that will contain information about all links that point to the file specified in |
Load(String, Boolean)
Loads the links that reference the file specified with a path.
Declaration
IList<SoftLink> Load(string path, bool exactMatch)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path. |
System.Boolean | exactMatch | if set to |
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<SoftLink> | A collection of SoftLink instances that will contain information about all links that point to the file specified in |
Save(ContentReference, CultureInfo, IList<SoftLink>, Boolean)
Saves all the specified SoftLink instances with the same owner page link.
Declaration
void Save(ContentReference ownerContent, CultureInfo ownerLanguage, IList<SoftLink> links, bool appendOnly)
Parameters
Type | Name | Description |
---|---|---|
ContentReference | ownerContent | The owner content link. |
System.Globalization.CultureInfo | ownerLanguage | The language, specify null to re-save links for all languages |
System.Collections.Generic.IList<SoftLink> | links | The collection of SoftLink instances. |
System.Boolean | appendOnly | If links should be appended to the existing links |