Click or drag to resize
DomainExtensionsToCompany Method
Creates and initializes a new instance of the Company class with properties of the specified instance of the CompanySearchResult class.

Namespace: CMS.DataCom
Assembly: CMS.DataCom (in CMS.DataCom.dll) Version: 8.2.23
Syntax
C#
public static Company ToCompany(
	this CompanySearchResult result
)

Parameters

result
Type: CMS.DataComCompanySearchResult
An instance of the CompanySearchResult class.

Return Value

Type: Company
A new instance of the Company class based initialized with properties of the specified instance of the CompanySearchResult class.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type CompanySearchResult. 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