|  | DataConverterToModel Method (CE, String, Boolean) | 
 
            Convert a CE to a concept
            
 
    Namespace: 
   SanteDB.Messaging.HL7
    Assembly:
   SanteDB.Messaging.HL7 (in SanteDB.Messaging.HL7.dll) Version: 2.2.1
 Syntax
Syntaxpublic static Concept ToModel(
	this CE me,
	string preferredDomain = null,
	bool throwIfNotFound = true
)
<ExtensionAttribute>
Public Shared Function ToModel ( 
	me As CE,
	Optional preferredDomain As String = Nothing,
	Optional throwIfNotFound As Boolean = true
) As Concept
public:
[ExtensionAttribute]
static Concept^ ToModel(
	CE^ me, 
	String^ preferredDomain = nullptr, 
	bool throwIfNotFound = true
)
[<ExtensionAttribute>]
static member ToModel : 
        me : CE * 
        ?preferredDomain : string * 
        ?throwIfNotFound : bool 
(* Defaults:
        let _preferredDomain = defaultArg preferredDomain null
        let _throwIfNotFound = defaultArg throwIfNotFound true
*)
-> Concept 
Parameters
- me
- Type: CE
 [Missing <param name="me"/> documentation for "M:SanteDB.Messaging.HL7.DataConverter.ToModel(NHapi.Model.V25.Datatype.CE,System.String,System.Boolean)"] 
- preferredDomain (Optional)
- Type: SystemString
 [Missing <param name="preferredDomain"/> documentation for "M:SanteDB.Messaging.HL7.DataConverter.ToModel(NHapi.Model.V25.Datatype.CE,System.String,System.Boolean)"] 
- throwIfNotFound (Optional)
- Type: SystemBoolean
 [Missing <param name="throwIfNotFound"/> documentation for "M:SanteDB.Messaging.HL7.DataConverter.ToModel(NHapi.Model.V25.Datatype.CE,System.String,System.Boolean)"] 
Return Value
Type: 
Concept[Missing <returns> documentation for "M:SanteDB.Messaging.HL7.DataConverter.ToModel(NHapi.Model.V25.Datatype.CE,System.String,System.Boolean)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type 
CE. When you use instance method syntax to call this method, omit the first parameter. For more information, see 
Extension Methods (Visual Basic) or 
Extension Methods (C# Programming Guide).
 See Also
See Also