PermissionV11方法Word文件下载.docx
- 文档编号:22100701
- 上传时间:2023-02-02
- 格式:DOCX
- 页数:44
- 大小:27.97KB
PermissionV11方法Word文件下载.docx
《PermissionV11方法Word文件下载.docx》由会员分享,可在线阅读,更多相关《PermissionV11方法Word文件下载.docx(44页珍藏版)》请在冰豆网上搜索。
PublicInterfacePermission
Inherits_IMsoDispObj,IEnumerable
J#
publicinterfacePermissionimplements_IMsoDispObj,IEnumerable
JScript
publicinterfacePermissionimplements_IMsoDispObj,,IEnumerable
Remarks
The
propertyoftheMicrosoftOfficeWord2003
Document
object,theMicrosoftOfficeExcel2003
Workbook
object,andtheMicrosoftOfficePowerPoint2003
Presentation
objectreturnsa
object.
Enabled
propertytodeterminewhetherpermissionsarerestrictedontheactivedocument.Usethe
Count
propertytoreturnthenumberofuserswithpermissionsandthe
RemoveAll
methodtoresetallexistingpermissions.
DocumentAuthor,
EnableTrustedBrowser,
RequestPermissionURL,and
StoreLicenses
propertiesprovideadditionalinformationaboutpermissionssettings.
objectgivesaccesstoacollectionof
UserPermission
objects.Usethe
objecttoassociatespecificsetsofrightswithindividualusers.Whilesomepermissionsgrantedthroughtheuserinterface(suchas
msoPermissionPrint)applytoallusers,youcanusethe
objecttoassignthemonaper-userbasiswithper-userexpirationdates.
MicrosoftOfficeInformationRightsManagementsupportstheuseofadministrativepermissionpolicieswhichlistusersandgroupsandtheirdocumentpermissions.Usethe
ApplyPolicy
methodtoapplyapermissionpolicyandthe
PermissionFromPolicy,
PolicyName,and
PolicyDescription
propertiestoreturnpolicyinformation.
objectmodelisavailableregardlessofwhetherpermissionsarerestrictedontheactivedocument.The
propertyofthe
Document,Workbook,and
objectsdoesnotreturn
Nothing
whentheactivedocumentdoesnothaverestrictedpermissions.Usethe
propertytodeterminewhetheradocumenthasrestrictedpermissions.
Useofthe
objectraisesanerrorwhentheWindowsRightsManagementclientisnotinstalled.
Platforms
DevelopmentPlatforms
WindowsXPHomeEdition,WindowsXPProfessional,WindowsServer2003,andWindows2000
TargetPlatforms
PermissionMembers
此主题尚未评级
-
评价此主题
Thefollowingtableslistthemembersexposedbythe
type.
PublicProperties
Name
Description
Application
Returnsan
Application
objectthatrepresentsthecontainerapplicationfortheobject.
Count
Integer
indicatingthenumberofitemsinthespecifiedcollection.
Creator
Returnsa32-bitintegerthatindicatestheapplicationinwhichthespecifiedobjectwascreated.
DocumentAuthor
Returnsorsetsthenameinemailformoftheauthoroftheactivedocument.
Enabled
Returnsorsetsa
Boolean
valuethatindicateswhetherpermissionsareenabledontheactivedocument.
EnableTrustedBrowser
Returnsorsetstheoptionthatallowsausertoviewadocumentwithrestrictedpermissionsinawebbrowseriftheuserdoesnothavetheappropriateclientapplicationinstalled.
Item
Returnsa
objectthatisamemberofthe
collection.
Parent
Returnsthe
Parent
objectforthespecifiedobject.
PermissionFromPolicy
valuethatindicateswhetherapermissionpolicyhasbeenappliedtotheactivedocument.
PolicyDescription
Returnsthedescriptionofthepermissionspolicyappliedtotheactivedocument.
PolicyName
Returnsthenameofthepermissionspolicyappliedtotheactivedocument.
RequestPermissionURL
ReturnsorsetsthefileorwebsiteURLtovisitortheemailaddresstocontactforuserswhoneedadditionalpermissionsontheactivedocument.
StoreLicenses
valuethatindicateswhethertheuser'
slicensetoviewtheactivedocumentshouldbecachedtoallowofflineviewingwhentheusercannotconnecttoarightsmanagementserver.
Top
PublicMethods
Add
Createsanewsetofpermissionsontheactivedocumentforthespecifieduser.
ApplyPolicy
Appliesthespecifiedpermissionpolicytotheactivedocument.
GetEnumerator
Returnsanenumeratortosupportiteratingthroughthecollection.
RemoveAll
Removesall
objectsfromthe
collectionoftheactivedocumentanddisablesrestrictionsontheactivedocument.
Permission.ApplicationProperty
Dimpermission1AsPermission
DimreturnValueAsObject
returnValue=permission1.Application
C#
C++
ReadOnlyPropertyApplication()AsObject
publicSystem.Objectget_Application();
functiongetApplication():
Object;
ThreadSafety
Anypublicstatic(SharedinVisualBasic)membersofthistypearethreadsafe.Anyinstancemembersarenotguaranteedtobethreadsafe.
Permission.CountProperty
DimreturnValueAsInteger
returnValue=permission1.Count
ReadOnlyPropertyCount()AsInteger
publicintget_Count();
functiongetCount():
int;
Returns0(zero)ifpermissionsarenotenabledontheactivedocument.Whenpermissionsareenabled,the
propertyalwaysreturnsatleast1,representingthepermissionsofthedocumentauthor.
Permission.CreatorProperty
returnValue=permission1.Creator
ReadOnlyPropertyCreator()AsInteger
publicintget_Creator();
functiongetCreator():
IfthespecifiedobjectwascreatedinMicrosoftWord,thispropertyreturns1297307460,whichrepresentsthestringMSWD;
ifcreatedinMicrosoftExcel,thispropertyreturns1480803660.Thisvaluecanalsoberepresentedbytheconstant
wdCreatorCode
inWord,or
xlCreatorCode
inExcel.
Creator
propertywasprimarilydesignedtobeusedontheMacintosh,whereeachapplicationhasafour-charactercreatorcode.Forexample,MicrosoftWordhasthecreatorcodeMSWD.Foradditionalinformationaboutthisproperty,consultthelanguagereferenceHelpincludedwithMicrosoftOfficeMacintoshEdition.
propertyalwaysreturnsthenumericidentifierfortheactiveapplication,justasthe
propertyalwaysreturnsthenameoftheactiveapplicationinstringform.Usethe
CreatedBy
SharedWorkspaceFile,
SharedWorkspaceFolder,
SharedWorkspaceLink,and
SharedWorkspaceTaskobjectstoreturnthenameoftheindividualwhocreatedthoseobjects.UsedocumentpropertiestoreturninformationabouttheauthorsofOfficedocuments.
Permission.DocumentAuthorProperty
DimreturnValueAsString
returnValue=permission1.DocumentAuthor
DimsampleValueAsString
permission1.DocumentAuthor=sampleValue
PropertyDocumentAuthor()AsString
publicSystem.Stringget_DocumentAuthor();
publicvoidset_DocumentAuthor(System.String);
functiongetDocumentAuthor():
String;
functionsetDocumentAuthor(String);
DocumentAuthor
propertyreturnsorsetstheauthoroftheactivedocument.Theauthoralwayshasnon-expiringownerrightstothedocument,whetherownerpermissionisgrantedexplicitly(througha
object)ornot.
propertycanonlybechangedtoadifferentaccountthathasbeencertifiedthroughthepermissionsuserinterfacetoopenrestrictedcontentonthelocalmachine.Inmostcases,userswhohaveasingleWindowsaccountcanonlychoosebetweentheirWindowsandtheirPassportidentities.
Iftheuser'
sMicrosoftWindowsandPassportidentitiesusethesameemailaddress,usetheformat
passport:
someone@
tospecifythePassportidentityasthe
property.
Window
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- PermissionV11 方法