Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 1.59 KB

setobjectowner-method.md

File metadata and controls

48 lines (38 loc) · 1.59 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords apitype
SetObjectOwner Method
SetObjectOwner Method
rothja
jroth
01/19/2017
sql
ado
reference
_Catalog::SetObjectOwner
_Catalog::raw_SetObjectOwner
SetObjectOwner method [ADOX]
COM

SetObjectOwner Method

Specifies the owner of an object in a Catalog.

Syntax

  
Catalog.SetObjectOwner ObjectName, ObjectType, OwnerName [,ObjectTypeId]  

Parameters

ObjectName
A String value that specifies the name of the object for which to specify the owner.

ObjectType
A Long value which can be one of the ObjectTypeEnum constants that specifies the owner type.

OwnerName
A String value that specifies the Name of the User or Group to own the object.

ObjectTypeId
Optional. A Variant value that specifies the GUID for a provider object type that is not defined by the OLE DB specification. This parameter is required if ObjectType is set to adPermObjProviderSpecific; otherwise, it is not used.

Remarks

An error will occur if the provider does not support specifying object owners.

Applies To

Catalog Object (ADOX)

See Also

GetObjectOwner and SetObjectOwner Methods Example (VB)
GetObjectOwner Method (ADOX)