Returns the filename for the field, if a filename is related to the field type. Use this call to create the appropriate filename when a new file is added. The filename with the appropriate path is created or returned. This file and path is relative to the site's content file path and does not include a leading slash. To use this file in a URL, prefix with cp.site.filepath.
Namespace: Contensive.BaseClasses
Assembly: CPBase (in CPBase.dll)
Syntax
Visual Basic (Declaration) |
---|
Public MustOverride Function GetFilename( _ ByVal FieldName As String, _ Optional ByVal OriginalFilename As String = "", _ Optional ByVal ContentName As String = "" _ ) As String |
C# |
---|
public abstract string GetFilename( string FieldName, [OptionalAttribute] string OriginalFilename, [OptionalAttribute] string ContentName ) |
C++ |
---|
public: String GetFilename( String FieldName, [OptionalAttribute] String OriginalFilename, [OptionalAttribute] String ContentName ) abstract |
J# |
---|
public abstract string GetFilename( string FieldName, /** @attribute OptionalAttribute() */ string OriginalFilename, /** @attribute OptionalAttribute() */ string ContentName ) |
JScript |
---|
public abstract
function GetFilename( FieldName : String, OptionalAttribute OriginalFilename : String, OptionalAttribute ContentName : String ) : String |
Parameters
- FieldName
- OriginalFilename
- ContentName