MicrosoftOfficeLiveBusinessContactManager.AddCompany Method
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
Add a new company. Returns the ID for the new company.
Namespace: WebBCM
Assembly: OfficeLive (in OfficeLive.dll)
Syntax
'Declaration
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/officelive/soap/AddCompany", RequestNamespace := "http://schemas.microsoft.com/officelive/soap/", _
ResponseNamespace := "http://schemas.microsoft.com/officelive/soap/", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("UserHeaderValue")> _
<SoapHeaderAttribute("AuditHeaderValue")> _
Public Function AddCompany ( _
Company As Company _
) As Integer
'Usage
Dim instance As MicrosoftOfficeLiveBusinessContactManager
Dim Company As Company
Dim returnValue As Integer
returnValue = instance.AddCompany(Company)
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/officelive/soap/AddCompany", RequestNamespace = "http://schemas.microsoft.com/officelive/soap/",
ResponseNamespace = "http://schemas.microsoft.com/officelive/soap/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("UserHeaderValue")]
[SoapHeaderAttribute("AuditHeaderValue")]
public int AddCompany(
Company Company
)
Parameters
- Company
Type: WebBCM.Company
Company
Return Value
Type: System.Int32
ID attribute of new Company
Remarks
Any company property can be set using this method. For a list of fields available to be set using the AllFields property, see Companies Schema.
Examples
For an interactive example of this method, download the Contact Manager Web service examples tool from the MSDN Code Gallery.
See Also
Reference
MicrosoftOfficeLiveBusinessContactManager Class