A Sandcastle Documented Class Library

# IMemberProvider TRecord, TFieldEnum, TFilterRule SaveRecord Method

Saves a record.

Namespace: Dundas.BI.AccountServices.Extensibility
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    Guid SaveRecord(
    	TRecord record
    )

    Function SaveRecord (
    	record As TRecord
    ) As Guid

    Guid SaveRecord(
    	TRecord record
    )

    abstract SaveRecord :
            record : 'TRecord -> Guid

#### Parameters

record
  Type: TRecord
  The record to be saved.

#### Return Value

Type: Guid
The ID of the record.
Exceptions

Exception | Condition
--- | ---
ValidationException | One or more properties of the record are invalid. Optional.
NotFoundException | A record with the given ID does not exist. Optional.
DuplicateItemException | A record with the same name already exists.
NotSupportedException | The operation is not supported. Optional.

Remarks

A value of Empty for the Id property of the provided record indicates that the object represents a new record which has never been saved. Any other value for the Id property indicates that the record already exists and needs to be updated in the storage mechanism.

Notes to Implementers
Implementations of this method may, at the developer's option, throw any of the listed exceptions marked as Optional. However, the system does not rely on those exceptions being thrown in order to function properly.

See Also

#### Reference

IMemberProvider
TRecord, TFieldEnum, TFilterRule
Interface
Dundas.BI.AccountServices.Extensibility Namespace