2025-04-27 07:49:33 -04:00

158 lines
5.3 KiB
HTML
Raw Blame History

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<TITLE>GetPropertyAttribObj</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
TempString = navigator.appVersion
if (navigator.appName == "Microsoft Internet Explorer"){
// Check to see if browser is Microsoft
if (TempString.indexOf ("4.") >= 0){
// Check to see if it is IE 4
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
}
else {
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
}
}
else if (navigator.appName == "Netscape") {
// Check to see if browser is Netscape
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
}
else
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
//-->
</script>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub Window_OnLoad()
Dim frmContents
On Error Resume Next
If Not Parent Is Nothing Then
Set frmContents = Parent.Contents
If Not frmContents Is Nothing Then
frmContents.Window.TOCSynch_Click
End If
End If
End Sub
//--></SCRIPT><META NAME="DESCRIPTION" CONTENT="Internet Information Services reference information">
<META HTTP-EQUIV="PICS-Label" CONTENT='(PICS-1.1 "<http://www.rsac.org/ratingsv01.html>" l comment "RSACi North America Server" by "inet@microsoft.com <mailto:inet@microsoft.com>" r (n 0 s 0 v 0 l 0))'>
<META NAME="MS.LOCALE" CONTENT="EN-US">
<META NAME="MS-IT-LOC" Content="Internet Information Services">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H4>&nbsp;<A NAME="_k2_getpropertyattribobj"></A><SUP></SUP>GetPropertyAttribObj</H4>
<P>You can use this method to access information about attributes for individual ADSI properties. <B>GetPropertyAttribObj</B> works in the following way:
<UL type=disc>
<LI>Returns a <B>PropertyAttribute</B> object that contains the property's attributes if the property is set at that node or is set at some parent node and is inheritable.</li>
<LI>Returns an Error if the property is not set at that node, or its parent node and is inheritable.</li>
<LI>Returns an Error if the property is not set at that node, but set at parent and not inheritable.</li>
</UL>
<H6>Syntax</H6>
<P>Initializing:</P>
<P><I>PropAttObj = object.</I><B>GetPropertyAttribObj</B>(<I>property</I>)</P>
<P>Using:</P>
<P><I>RetBool<B> </B></I><B>=</B> <I>PropAttObj</I>.<I>Attribute</I></P>
<P>&nbsp;</P>
<H6>Parts</H6>
<DL>
<DT><I>PropAttObj</I></DT>
<DD>Reference to a <B>PropertyAttribute</B> object that returns the attributes of an IIS Admin Object<63>s specified metabase <I>property.</I> <BR>
</DD>
<DT><I>object</I></DT>
<DD>Contains an IIS Admin Object, usually as a result of a previous <B>GetObject</B> operation.<BR>
</DD>
<DT><I>property</I></DT>
<DD>String that contains the name of the property attributes being requested.<BR>
</DD>
<DT><I>RetBool</I></DT>
<DD>Boolean that indicates whether the attribute specified by <I>Attribute </I>is enabled or disabled.<BR>
</DD>
<DT><I>Attribute</I></DT>
<DD>Indicates which attribute is being queried. The possible attributes are:
<TABLE border=0 cellpadding=5 cols=2 frame=box rules=all>
<TR VALIGN="top">
<TD class=blue width=52%><B>Attribute</B></TD>
<TD class=blue width=48%><B>Description</B></TD>
</TR>
<TR VALIGN="top">
<TD width=52%><B>Inherit</B></TD>
<TD width=48%>Specifies whether the property is inheritable.</TD>
</TR>
<TR VALIGN="top">
<TD width=52%><B>PartialPath</B></TD>
<TD width=48%>Indicates whether a partial path is present.</TD>
</TR>
<TR VALIGN="top">
<TD width=52%><B>Secure</B></TD>
<TD width=48%>Indicates whether the property is secure.</TD>
</TR>
<TR VALIGN="top">
<TD width=52%><B>Reference</B></TD>
<TD width=48%>Specifies if the property was received by a reference.</TD>
</TR>
<TR VALIGN="top">
<TD width=52%><B>Volatile</B></TD>
<TD width=48%>Indicates whether the property is volatile.</TD>
</TR>
<TR VALIGN="top">
<TD width=52%><B>IsInherit</B></TD>
<TD width=48%>Specifies whether the property is inherited.</TD>
</TR>
<TR VALIGN="top">
<TD width=52%><B>InsertPath</B></TD>
<TD width=48%>Indicates whether a string in a property contains a special insert value.</TD>
</TR>
<TR VALIGN="top">
<TD width=52%><B>AllAttributes</B></TD>
<TD width=48%>Contains all the attributes listed in this table in one <B>Long.</B></TD>
</TR>
</TABLE><BR>
</DD>
</DL>
<H6>Remarks</H6>
<P>Unlike most other ADSI objects, the property attributes object does not support <B>Get</B> and <B>Set </B>methods. You must use the <I>object.property</I> syntax to access the individual attributes of the property attribute object.</P>
<P><span class=le><B>Note&nbsp;&nbsp;&nbsp;</B></span>If a call is made to <B>AppCreate </B>or <B>AppCreate2</B>, object path information will be persisted, but you must call <B>SetInfo</B> before the given object is created. If <B>SetInfo</B> is not called, subsequent calls to the object created will fail.</P>
<hr class="iis" size="1">
<p align="center"><em><a href="../../../common/colegal.htm">&copy; 1997-2001 Microsoft Corporation. All rights reserved.</a></em></p>
</BODY>
</HTML>